Skip to content

Commit a5764a9

Browse files
Upgrade TS
1 parent 5809474 commit a5764a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/content-services/src/lib/permission-manager/components/inherited-button.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class InheritPermissionDirective {
4848
onInheritPermissionClicked() {
4949
this.nodeService.getNode(this.nodeId).subscribe((node: Node) => {
5050
if (this.contentService.hasAllowableOperations(node, AllowableOperationsEnum.UPDATEPERMISSIONS)) {
51-
const nodeBody = { permissions: { isInheritanceEnabled: !node?.['permissions']?.['isInheritanceEnabled'] ?? false } };
51+
const nodeBody = { permissions: { isInheritanceEnabled: !node?.['permissions']?.['isInheritanceEnabled'] || false } };
5252
this.nodeService.updateNode(this.nodeId, nodeBody, { include: ['permissions'] }).subscribe(
5353
(nodeUpdated: Node) => {
5454
this.updated.emit(nodeUpdated);

0 commit comments

Comments
 (0)