fix condition

This commit is contained in:
Niels Lyngsø
2024-02-26 13:51:34 +01:00
parent e41983e876
commit ffc24ff2a5

View File

@@ -19,9 +19,9 @@ export class UmbDocumentWorkspaceHasCollectionCondition extends UmbBaseControlle
this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (context) => {
this.observe(
context.contentTypeCollection,
context.contentTypeHasCollection,
(collection) => {
this.permitted = !!collection?.id;
this.permitted = collection;
this.#onChange();
},
'observeCollection',