From d55e712941369b43ac04481343d897eb2b61bb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Thu, 19 Dec 2024 15:36:56 +0100 Subject: [PATCH] fix: don't fetch inital poi if address id #365 --- pages/embedded.vue | 2 +- pages/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/embedded.vue b/pages/embedded.vue index e1dfb5a7..952114c1 100644 --- a/pages/embedded.vue +++ b/pages/embedded.vue @@ -78,7 +78,7 @@ const { data, error, status } = await useFetch( geometry_as: 'bbox', short_description: false, }, - immediate: !!poiId.value, + immediate: !!poiId.value && !poiId.value.includes('_'), }, ) diff --git a/pages/index.vue b/pages/index.vue index af35b560..f4e02aea 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -78,7 +78,7 @@ const { data, error, status } = await useFetch( geometry_as: 'bbox', short_description: true, }, - immediate: !!poiId.value, + immediate: !!poiId.value && !poiId.value.includes('_'), }, )