Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joverlee521 committed Nov 19, 2024
1 parent 9fba571 commit 891488a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/measurements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ const parseMeasurementsJSON = (json: MeasurementsJson): MeasurementsState => {
// Must be done after looping through measurements to build `groupingsValues` object
collection.groupings = new Map(
jsonCollection.groupings.map(({key, order}) => {
const defaultOrder = order ? order.map(x => x.toString()) : [];
const defaultOrder = order ? order.map((x) => x.toString()) : [];
const valuesByCount = [...groupingsValues[key].entries()]
// Use the grouping values' counts to sort the values, highest count first
.sort(([, valueCountA], [, valueCountB]) => valueCountB - valueCountA)
Expand Down
2 changes: 1 addition & 1 deletion src/components/measurements/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function useDeepCompareMemo<T>(value: T): T {
ref.current = value;
}
return ref.current;
};
}

// Checks visibility against global NODE_VISIBLE
const isVisible = (visibility: Visibility): boolean => visibility === NODE_VISIBLE;
Expand Down

0 comments on commit 891488a

Please sign in to comment.