From b03de5381847f3e8b3ba985c96d66cccfec4b0b2 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 25 Mar 2024 10:45:44 +0100 Subject: [PATCH] Update relation-type-workspace.context-token.ts --- .../relation-type/relation-type-workspace.context-token.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/relations/relation-types/workspace/relation-type/relation-type-workspace.context-token.ts b/src/Umbraco.Web.UI.Client/src/packages/relations/relation-types/workspace/relation-type/relation-type-workspace.context-token.ts index 2fcb61a826..e2e882f0a4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/relations/relation-types/workspace/relation-type/relation-type-workspace.context-token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/relations/relation-types/workspace/relation-type/relation-type-workspace.context-token.ts @@ -1,11 +1,8 @@ import type { UmbRelationTypeWorkspaceContext } from './relation-type-workspace.context.js'; import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; -import type { UmbSaveableWorkspaceContext } from '@umbraco-cms/backoffice/workspace'; -export const UMB_RELATION_TYPE_WORKSPACE_CONTEXT = new UmbContextToken< - UmbSaveableWorkspaceContext, - UmbRelationTypeWorkspaceContext ->( +// TODO: Make readonly workspace context type +export const UMB_RELATION_TYPE_WORKSPACE_CONTEXT = new UmbContextToken( 'UmbWorkspaceContext', undefined, (context): context is UmbRelationTypeWorkspaceContext => context.getEntityType?.() === 'relation-type',