Skip to content

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

fix: failed to update exception policy (#14915)

ecmadao7f958b51b8a2
diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
index 75af761d30..d5261065ef 100644
--- a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
@@ -181,9 +181,7 @@ const getExceptionIdentifier = (
exception: MaskingExceptionPolicy_MaskingException
): string => {
const expression = exception.condition?.expression ?? "";
- const res: string[] = [
- expression,
- ];
+ const res: string[] = [expression];
return res.join(" && ");
};
@@ -503,7 +501,9 @@ const updateExceptionPolicy = async () => {
).filter((exception) => !props.filterException(exception));
for (const accessUser of state.accessList) {
- const expressions = accessUser.rawExpression.split(" && ");
+ const expressions = accessUser.rawExpression
+ .split(" && ")
+ .filter((expression) => expression);
const index = expressions.findIndex((exp) =>
exp.startsWith("request.time")
);