Fix issue 13023 - Cannot read properties of undefined (reading 'allowedActions')

This commit is contained in:
Justin Neville
2022-09-17 17:31:16 +01:00
committed by Michael Latouche
parent 48269143d5
commit 3d88ed7ab2

View File

@@ -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'));
}
}