Fixed an issue where adding security privileges and change type to shell crash the dialog. Fixes #6744

This commit is contained in:
Rahul Shirsat 2021-10-04 19:34:41 +05:30 committed by Akshay Joshi
parent 7eaa3179ad
commit 2932ef770d

View File

@ -1640,7 +1640,7 @@ export default class TypeSchema extends BaseUISchema {
if (state.typtype === 'p') {
var acl = state.typacl;
if(acl && acl.length > 0)
acl.reset();
acl.splice(0, acl.length);
}
return (state.typtype !== 'p');
},