Skip access API request if unchanged

This commit is contained in:
Andrew Kingston 2024-10-24 15:30:05 +01:00
parent 08ee84c88b
commit c8a7837868
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@
}
const changePermission = async role => {
if (role === selectedRole) {
return
}
try {
await permissionsStore.save({
level: "read",