From ab7389e7b9f56ef19aee157a2896d47422833321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Mon, 19 Feb 2024 19:42:38 +0100 Subject: [PATCH] chore: change import of proptype --- components/Fields/Stars.vue | 31 +++++++++++++++++++++++++++++-- stores/map.ts | 5 ++--- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/components/Fields/Stars.vue b/components/Fields/Stars.vue index dd61f7abc..b8b182545 100644 --- a/components/Fields/Stars.vue +++ b/components/Fields/Stars.vue @@ -1,8 +1,22 @@ diff --git a/stores/map.ts b/stores/map.ts index 7b173ad6d..2d7ae5459 100644 --- a/stores/map.ts +++ b/stores/map.ts @@ -60,10 +60,9 @@ export const mapStore = defineStore('map', { const cleanProperties: { [key: string]: any } = {} Object.keys(feature.properties).forEach((key) => { - if (IsJsonString(feature.properties[key])) + if (key !== 'stars' && IsJsonString(feature.properties[key])) cleanProperties[key] = JSON.parse(feature.properties[key]) - else - cleanProperties[key] = feature.properties[key] + else cleanProperties[key] = feature.properties[key] }) goodFeature.properties = cleanProperties as ApiPoiProperties