From 7faba809bdd8c00e255f20cc5659bb976c0cabaa Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 11 Oct 2024 14:46:46 +0200 Subject: [PATCH] =?UTF-8?q?correction=20pb=20d'acc=C3=A8s=20aux=20pages=20?= =?UTF-8?q?statiques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/themes/custom/caravane/assets/js/stores/content.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/themes/custom/caravane/assets/js/stores/content.js b/web/themes/custom/caravane/assets/js/stores/content.js index a220302..e7daeee 100644 --- a/web/themes/custom/caravane/assets/js/stores/content.js +++ b/web/themes/custom/caravane/assets/js/stores/content.js @@ -217,10 +217,9 @@ export const useContentStore = defineStore('content', { this.map = map; try { const response = await REST.get(`/jsonapi/node/static/`); - console.log(response.data.data); for (let page of response.data.data) { - if (page.attributes.drupal_internal__nid == nid) { + if (page.attributes?.drupal_internal__nid == nid) { for (let metatag of page.attributes.metatag) { if (metatag.tag === "link") { this.href = metatag.attributes.href;