diff --git a/src/Umbraco.Web.UI.Client/src/packages/content/content/collection/content-collection-workspace.context-token.ts b/src/Umbraco.Web.UI.Client/src/packages/content/content/collection/content-collection-workspace.context-token.ts index 1364c6dcd8ec..5ce70e1ce810 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/content/content/collection/content-collection-workspace.context-token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/content/content/collection/content-collection-workspace.context-token.ts @@ -10,5 +10,5 @@ export const UMB_CONTENT_COLLECTION_WORKSPACE_CONTEXT = new UmbContextToken< 'UmbWorkspaceContext', undefined, (context): context is UmbContentCollectionWorkspaceContext => - (context as UmbContentCollectionWorkspaceContext).collection.hasCollection !== undefined, + (context as UmbContentCollectionWorkspaceContext).collection?.hasCollection !== undefined, );