diff --git a/app/components/ObjectSelector.vue b/app/components/ObjectSelector.vue index d6b0449c..d06b8af8 100644 --- a/app/components/ObjectSelector.vue +++ b/app/components/ObjectSelector.vue @@ -7,7 +7,6 @@ import { useGeodeStore } from "@ogw_front/stores/geode"; const schema = schemas.opengeodeweb_back.allowed_objects; const emit = defineEmits(["update_values", "increment_step"]); -console.log("ObjectSelector"); const { filenames } = defineProps({ filenames: { type: Array, required: true }, @@ -78,7 +77,6 @@ async function get_allowed_objects() { } function set_geode_object(geode_object_type) { - console.log("set_geode_object", { geode_object_type }); if (geode_object_type) { emit("update_values", { geode_object_type }); emit("increment_step"); diff --git a/app/components/Viewer/BreadCrumb.vue b/app/components/Viewer/BreadCrumb.vue index 04620f78..63d9fedc 100644 --- a/app/components/Viewer/BreadCrumb.vue +++ b/app/components/Viewer/BreadCrumb.vue @@ -13,7 +13,12 @@ function goBackToFileTree() { const model_id = computed(() => treeviewStore.model_id); -const metaDatas = dataStore.refItem(model_id.value); +const metaDatas = computed(() => { + if (!model_id.value) { + return {}; + } + return dataStore.refItem(model_id.value).value || {}; +});