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;