From 67adad5984aba43f1e625a2bc7bb2bb72fd7e37c Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:48:27 +0100 Subject: [PATCH] datasetcontext --- .../input-block-type/input-block-type.element.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.element.ts index 5bd561f196..3afaeebed3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-type/components/input-block-type/input-block-type.element.ts @@ -88,12 +88,12 @@ export class UmbInputBlockTypeElement< typeof UMB_WORKSPACE_MODAL.VALUE >; - #context?: UmbPropertyDatasetContext; + #datasetContext?: UmbPropertyDatasetContext; constructor() { super(); this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (instance) => { - this.#context = instance; + this.#datasetContext = instance; }); } @@ -138,11 +138,11 @@ export class UmbInputBlockTypeElement< const groupName = e.target.value as string; const groups = this.groups.map((group) => (group.key === key ? { ...group, name: groupName } : group)); - this.#context?.setPropertyValue('blockGroups', groups); + this.#datasetContext?.setPropertyValue('blockGroups', groups); } #deleteGroup(key: string) { - this.#context?.setPropertyValue( + this.#datasetContext?.setPropertyValue( 'blockGroups', this.groups.filter((group) => group.key !== key), );