From a8a3de259c44728203db4d8cf3dae9f4b1f1dc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 13 Dec 2023 11:33:48 +0100 Subject: [PATCH] append type to avoid type problem. --- .../data-type/workspace/data-type-workspace.context.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index ac85b0e50c..b3548f52f6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -1,4 +1,4 @@ -import { UmbPropertyDatasetBaseContext } from '@umbraco-cms/backoffice/property'; +import { UmbPropertyDatasetContext } from '@umbraco-cms/backoffice/property'; import { UmbDataTypeDetailRepository } from '../repository/detail/data-type-detail.repository.js'; import type { UmbDataTypeDetailModel } from '../types.js'; import { @@ -146,8 +146,8 @@ export class UmbDataTypeWorkspaceContext return this._configDefaultData?.find((x) => x.alias === alias)?.value; } - createPropertyDatasetContext(host: UmbControllerHost) { - const context = new UmbInvariantWorkspacePropertyDatasetContext(host, this); + createPropertyDatasetContext(host: UmbControllerHost): UmbPropertyDatasetContext { + return new UmbInvariantWorkspacePropertyDatasetContext(host, this); /* // Example of how this could have been done with the PropertyDatasetBaseContext: const context = new UmbPropertyDatasetBaseContext(host); @@ -187,8 +187,8 @@ export class UmbDataTypeWorkspaceContext }, 'observePropertyValues', ); - */ return context; + */ } async load(unique: string) {