Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: loading (#15115)

ecmadao618442276823
diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
index 9610adf3b8..97ae362732 100644
--- a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
@@ -227,7 +227,12 @@ const getMemberBinding = (access: AccessUser): string => {
};
const updateAccessUserList = async () => {
- if (!ready.value || !policy.value || !policy.value.maskingExceptionPolicy) {
+ if (!ready.value) {
+ return [];
+ }
+
+ if (!policy.value || !policy.value.maskingExceptionPolicy) {
+ state.loading = false;
return [];
}
diff --git a/frontend/src/store/modules/v1/policy.ts b/frontend/src/store/modules/v1/policy.ts
index eaee8fb487..21bec4e51d 100644
--- a/frontend/src/store/modules/v1/policy.ts
+++ b/frontend/src/store/modules/v1/policy.ts
@@ -220,7 +220,7 @@ export const usePolicyByParentAndType = (
parentPath,
policyType,
})
- .then(() => (ready.value = true));
+ .finally(() => (ready.value = true));
});
const policy = computed(() => {