update data

This commit is contained in:
Mads Rasmussen
2024-03-30 20:33:36 +01:00
parent 42ac784a37
commit f440de05e0
3 changed files with 6 additions and 3 deletions

View File

@@ -133,8 +133,9 @@ export class UmbPartialViewWorkspaceContext
onDetailStoreChanges(data: UmbPartialViewDetailModel | undefined) {
// Data is removed from the store
// TODO: revisit. We need to handle what should happen when the data is removed from the store
if (data === undefined) {
console.log('data removed');
this.#data.setValue(undefined);
}
}

View File

@@ -120,8 +120,9 @@ export class UmbScriptWorkspaceContext
onDetailStoreChanges(data: UmbScriptDetailModel | undefined) {
// Data is removed from the store
// TODO: revisit. We need to handle what should happen when the data is removed from the store
if (data === undefined) {
console.log('data removed');
this.#data.setValue(undefined);
}
}

View File

@@ -119,8 +119,9 @@ export class UmbStylesheetWorkspaceContext
onDetailStoreChanges(data: UmbStylesheetDetailModel | undefined) {
// Data is removed from the store
// TODO: revisit. We need to handle what should happen when the data is removed from the store
if (data === undefined) {
console.log('data removed');
this.#data.setValue(undefined);
}
}