From b076014ba0182398a8c722a71692ea060b61883d Mon Sep 17 00:00:00 2001 From: Gary Pang Date: Mon, 22 Jul 2024 19:07:19 -0400 Subject: [PATCH 1/3] Remove duplicate entry in package.json --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 11cb5850..ceaf08c5 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "autoprefixer": "10.4.19", "clsx": "^2.1.1", "framer-motion": "^11.3.8", - "framer-motion": "^11.3.8", "lodash": "^4.17.21", "mapbox-gl": "^3.5.2", "maplibre-gl": "^4.5.0", From 136a580206ac2f82afaaafaac028f1f65dbb629a Mon Sep 17 00:00:00 2001 From: Gary Pang Date: Mon, 22 Jul 2024 21:16:20 -0400 Subject: [PATCH 2/3] Fix type error Change property "options" type from "string[]" to "any" to fix the following error: "Type error: Type 'string[]' is not assignable to type 'Iterable'." --- src/components/Filters/MultiSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Filters/MultiSelect.tsx b/src/components/Filters/MultiSelect.tsx index 8a949511..c433778b 100644 --- a/src/components/Filters/MultiSelect.tsx +++ b/src/components/Filters/MultiSelect.tsx @@ -11,7 +11,7 @@ import { type MultiSelectProps = { display: string; - options: string[]; + options: any[]; selectedKeys: string[]; toggleDimension: (dimension: string) => void; handleSelectionChange: (e: React.ChangeEvent) => void; From 99c463e04691da08f97ff4e1f40c2e53343d04d2 Mon Sep 17 00:00:00 2001 From: Gary Pang Date: Mon, 22 Jul 2024 21:29:56 -0400 Subject: [PATCH 3/3] Revert mapbox-gl to v3.2.0 Revert to older version due to breaking changes in v3.5.2. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ceaf08c5..99b5e238 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "clsx": "^2.1.1", "framer-motion": "^11.3.8", "lodash": "^4.17.21", - "mapbox-gl": "^3.5.2", + "mapbox-gl": "^3.2.0", "maplibre-gl": "^4.5.0", "multi-range-slider-react": "^2.0.7", "next": "^14.2.5",