From 891488a7ba881cb054dfa2646268f6e4cbad9f38 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Mon, 18 Nov 2024 17:11:17 -0800 Subject: [PATCH] Fix lint errors --- src/actions/measurements.ts | 2 +- src/components/measurements/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/measurements.ts b/src/actions/measurements.ts index 8f106b83c..baa469994 100644 --- a/src/actions/measurements.ts +++ b/src/actions/measurements.ts @@ -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) diff --git a/src/components/measurements/index.tsx b/src/components/measurements/index.tsx index 974717f82..0c3f97e1d 100644 --- a/src/components/measurements/index.tsx +++ b/src/components/measurements/index.tsx @@ -55,7 +55,7 @@ function useDeepCompareMemo(value: T): T { ref.current = value; } return ref.current; -}; +} // Checks visibility against global NODE_VISIBLE const isVisible = (visibility: Visibility): boolean => visibility === NODE_VISIBLE;