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
......@@ -16,23 +16,23 @@ export const KbReactivity = {
type: String,
default: '',
callback: async function (value) {
this.resourceId = null;
if (this.nestedField) {
const resource = store.get(value) || await store.getData(value, this.context);
const nestedResource = await resource[this.nestedField]
this.resourceId = nestedResource ? nestedResource['@id'] : null;
} else {
this.resourceId = value;
}
this.subscribe();
// this.resourceId = null;
// if (this.nestedField) {
// const resource = store.get(value) || await store.getData(value, this.context);
// const nestedResource = await resource[this.nestedField]
// this.resourceId = nestedResource ? nestedResource['@id'] : null;
// } else {
// this.resourceId = value;
// }
// this.subscribe();
}
},
},
subscribe() {
if (this.resourceId && this.targetSrc) {
store.subscribeVirtualContainerTo(this.resourceId, this.targetSrc);
store.subscribeVirtualContainerTo(this.targetSrc, this.resourceId);
}
// if (this.resourceId && this.targetSrc) {
// store.subscribeVirtualContainerTo(this.resourceId, this.targetSrc);
// 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