From 29acf3007ab1eb9bd2bc9c5656a405bd8a1f98fd Mon Sep 17 00:00:00 2001 From: Allen Lee Date: Tue, 10 Dec 2024 12:56:07 -0700 Subject: [PATCH] fix: type check errors - fix refeernce to institutionData - add proj4 typescript typedefs --- frontend/package-lock.json | 10 +++++++++- frontend/package.json | 1 + frontend/src/components/UserMapView.vue | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5a87e849f..3b460be57 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -27,7 +27,7 @@ "highcharts-vue": "^1.4.3", "lodash-es": "^4.17.21", "pinia": "^2.1.7", - "proj4": "^2.14.0", + "proj4": "^2.15.0", "query-string": "^8.2.0", "sass": "^1.71.1", "sortablejs": "^1.15.2", @@ -43,6 +43,7 @@ "@types/jsdom": "^21.1.6", "@types/lodash-es": "^4.17.12", "@types/node": "^18.19.17", + "@types/proj4": "^2.5.5", "@types/sortablejs": "^1.15.8", "@vitejs/plugin-vue": "^4.6.2", "@vue/eslint-config-prettier": "^7.1.0", @@ -578,6 +579,13 @@ "undici-types": "~5.26.4" } }, + "node_modules/@types/proj4": { + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/@types/proj4/-/proj4-2.5.5.tgz", + "integrity": "sha512-y4tHUVVoMEOm2nxRLQ2/ET8upj/pBmoutGxFw2LZJTQWPgWXI+cbxVEUFFmIzr/bpFR83hGDOTSXX6HBeObvZA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/semver": { "version": "7.5.8", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", diff --git a/frontend/package.json b/frontend/package.json index b946c6c29..8a3373b81 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -52,6 +52,7 @@ "@types/jsdom": "^21.1.6", "@types/lodash-es": "^4.17.12", "@types/node": "^18.19.17", + "@types/proj4": "^2.5.5", "@types/sortablejs": "^1.15.8", "@vitejs/plugin-vue": "^4.6.2", "@vue/eslint-config-prettier": "^7.1.0", diff --git a/frontend/src/components/UserMapView.vue b/frontend/src/components/UserMapView.vue index 4048c22e7..1fea87be7 100644 --- a/frontend/src/components/UserMapView.vue +++ b/frontend/src/components/UserMapView.vue @@ -20,7 +20,7 @@ const props = defineProps<{ metricsData: MetricsData; }>(); -const institutionData = props.metricsData.institution_metrics; +const institutionData = props.metricsData.institutionData; const mapChartOptions = { chart: {