File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
meta_configurator/src/components/panels/rdf Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 22import CurrentPathBreadcrumb from ' @/components/panels/shared-components/CurrentPathBreadcrump.vue' ;
33import PropertiesPanel from ' @/components/panels/gui-editor/PropertiesPanel.vue' ;
44import type {Path } from ' @/utility/path' ;
5- import {computed } from ' vue' ;
5+ import {computed , ref , watch } from ' vue' ;
66import {JsonSchemaWrapper } from ' @/schema/jsonSchemaWrapper' ;
77import {getDataForMode , getSessionForMode } from ' @/data/useDataLink' ;
88import {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 >
Original file line number Diff line number Diff 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",
You can’t perform that action at this time.
0 commit comments