diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.context.ts index cee94b6ab2..b749803e83 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.context.ts @@ -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); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/workspace/script-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/workspace/script-workspace.context.ts index 6d19884817..3a229514d4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/workspace/script-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/workspace/script-workspace.context.ts @@ -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); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/stylesheet-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/stylesheet-workspace.context.ts index 71aa60e796..bb1718a183 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/stylesheet-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/stylesheet-workspace.context.ts @@ -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); } }