Fix issue 13023 - Cannot read properties of undefined (reading 'allowedActions')
This commit is contained in:
committed by
Michael Latouche
parent
48269143d5
commit
3d88ed7ab2
@@ -9,7 +9,7 @@
|
||||
|
||||
function propertyEditorReadonly () {
|
||||
// check for permission to update
|
||||
return !$scope.variantContent.allowedActions.includes('A');
|
||||
return !(typeof $scope.variantContent !== 'undefined' && $scope.variantContent.allowedActions.includes('A'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user