Skip to content
Snippets Groups Projects
Commit 58a9054a authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

bug: commenting out reactivity process

parent 3e7886de
No related branches found
No related tags found
1 merge request!255update: testing to remove some explicit clearCache
Pipeline #9097 failed with stage
in 1 hour
...@@ -16,23 +16,23 @@ export const KbReactivity = { ...@@ -16,23 +16,23 @@ export const KbReactivity = {
type: String, type: String,
default: '', default: '',
callback: async function (value) { callback: async function (value) {
this.resourceId = null; // this.resourceId = null;
if (this.nestedField) { // if (this.nestedField) {
const resource = store.get(value) || await store.getData(value, this.context); // const resource = store.get(value) || await store.getData(value, this.context);
const nestedResource = await resource[this.nestedField] // const nestedResource = await resource[this.nestedField]
this.resourceId = nestedResource ? nestedResource['@id'] : null; // this.resourceId = nestedResource ? nestedResource['@id'] : null;
} else { // } else {
this.resourceId = value; // this.resourceId = value;
} // }
this.subscribe(); // this.subscribe();
} }
}, },
}, },
subscribe() { subscribe() {
if (this.resourceId && this.targetSrc) { // if (this.resourceId && this.targetSrc) {
store.subscribeVirtualContainerTo(this.resourceId, this.targetSrc); // store.subscribeVirtualContainerTo(this.resourceId, this.targetSrc);
store.subscribeVirtualContainerTo(this.targetSrc, this.resourceId); // store.subscribeVirtualContainerTo(this.targetSrc, this.resourceId);
} // }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment