File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/packages/block/block/conditions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- import { UMB_BLOCK_WORKSPACE_CONTEXT } from '../workspace/block-workspace.context-token.js' ;
2
1
import { UmbConditionBase } from '@umbraco-cms/backoffice/extension-registry' ;
3
2
import type { BlockWorkspaceHasSettingsConditionConfig } from '@umbraco-cms/backoffice/extension-registry' ;
4
3
import type { UmbConditionControllerArguments , UmbExtensionCondition } from '@umbraco-cms/backoffice/extension-api' ;
5
4
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api' ;
5
+ import { UMB_BLOCK_WORKSPACE_CONTEXT } from '../workspace/block-workspace.context-token.js' ;
6
6
7
7
export class UmbBlockWorkspaceHasSettingsCondition
8
8
extends UmbConditionBase < BlockWorkspaceHasSettingsConditionConfig >
@@ -18,7 +18,7 @@ export class UmbBlockWorkspaceHasSettingsCondition
18
18
this . observe (
19
19
context . settings . contentTypeId ,
20
20
( settingsContentTypeId ) => {
21
- this . permitted = ! ! settingsContentTypeId ;
21
+ this . permitted = settingsContentTypeId !== undefined ;
22
22
} ,
23
23
'observeSettingsElementTypeId' ,
24
24
) ;
You can’t perform that action at this time.
0 commit comments