Skip to content

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

fix: handle empty expression (#15075)

ecmadao807ba13ba756
diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
index efc6b2d8a5..5396cb35c0 100644
--- a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
@@ -251,8 +251,8 @@ const updateAccessUserList = async (policy: Policy | undefined) => {
// - 3 & 4 is merged: user1, action:export+action, level:PARTIAL, expires at 2023-09-04
const memberMap = new Map<string, AccessUser>();
const { maskingExceptions } = policy.maskingExceptionPolicy;
- const expressionList = maskingExceptions.map(
- (e) => e.condition?.expression ?? "true"
+ const expressionList = maskingExceptions.map((e) =>
+ e.condition?.expression ? e.condition?.expression : "true"
);
const conditionList = await batchConvertFromCELString(expressionList);