Skip to content

Commit ac04b91

Browse files
committed
Prevent duplicate call to load permissions
1 parent 7b9f480 commit ac04b91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web-ui/src/pages/PermissionsPage.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ const EditPermissionsPage = () => {
8282
};
8383

8484
if (csrf) {
85-
getPermissions();
85+
if(rolePermissionsList.length === 0){
86+
getPermissions();
87+
}
8688
getRolePermissions();
8789
}
8890
}, [csrf, refresh]);

0 commit comments

Comments
 (0)