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 22, 2024
1 parent 7ad7ba7 commit a73741c
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 @@ -323,7 +323,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 @@ -54,7 +54,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 a73741c

Please sign in to comment.