update data
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user