Skip to content

Commit db8aec0

Browse files
committed
ContextTab Refresh fix
1 parent 28116f8 commit db8aec0

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

meta_configurator/src/components/panels/rdf/rdf-authoring/RdfContextTab.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import CurrentPathBreadcrumb from '@/components/panels/shared-components/CurrentPathBreadcrump.vue';
33
import PropertiesPanel from '@/components/panels/gui-editor/PropertiesPanel.vue';
44
import type {Path} from '@/utility/path';
5-
import {computed} from 'vue';
5+
import {computed, ref, watch} from 'vue';
66
import {JsonSchemaWrapper} from '@/schema/jsonSchemaWrapper';
77
import {getDataForMode, getSessionForMode} from '@/data/useDataLink';
88
import {SessionMode} from '@/store/sessionMode';
@@ -51,9 +51,15 @@ function selectPath(path: Path) {
5151
session.updateCurrentSelectedElement(path);
5252
}
5353
54-
const currentData = computed(() => {
55-
return getDataForMode(props.sessionMode).dataAt(['@context']);
56-
});
54+
const currentData = ref<any>(undefined);
55+
56+
watch(
57+
() => data.data.value,
58+
() => {
59+
currentData.value = getDataForMode(props.sessionMode).dataAt(['@context']);
60+
},
61+
{deep: true, immediate: true}
62+
);
5763
</script>
5864

5965
<template>

meta_configurator/src/components/panels/rdf/rdfUtils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export const defaultJsonLdSchema = `
6666
{
6767
"title": "URI",
6868
"type": "string",
69-
"format": "uri"
69+
"format": "uri",
70+
"additionalProperties": true
7071
},
7172
{
7273
"title": "Object",
@@ -81,7 +82,8 @@ export const defaultJsonLdSchema = `
8182
{
8283
"title": "URI",
8384
"type": "string",
84-
"format": "uri"
85+
"format": "uri",
86+
"additionalProperties": true
8587
},
8688
{
8789
"title": "Object",

0 commit comments

Comments
 (0)