This is an automated email from the ASF dual-hosted git repository. madhan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ranger.git
commit d8956c104db5ce73b23e1997c86c513f7f65f37d Author: hmaurya <[email protected]> AuthorDate: Tue Dec 12 11:49:56 2023 +0530 RANGER-4584: UI fix in rendering tag-based policy for EXPIRES_ON Signed-off-by: Madhan Neethiraj <[email protected]> --- .../src/main/webapp/scripts/views/policies/PermissionList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js index cd3730bba..dbcd3b8b5 100644 --- a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js +++ b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js @@ -162,7 +162,9 @@ define(function(require) { _.each(this.model.get('accesses'), function(p){ if(p.isAllowed){ var access = _.find(that.accessTypes,function(obj){if(obj.name == p.type) return obj}); - this.permsIds.push(access.name); + if(access !== undefined){ + this.permsIds.push(access.name); + } } }, this);
