Skip to content

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

fix: risk source string (#16825)

p0nycc20db91b5df
diff --git a/frontend/src/utils/workspaceApprovalSetting.ts b/frontend/src/utils/workspaceApprovalSetting.ts
index 470e7f2c51..71b2ea1087 100644
--- a/frontend/src/utils/workspaceApprovalSetting.ts
+++ b/frontend/src/utils/workspaceApprovalSetting.ts
@@ -289,7 +289,7 @@ const buildParsedExpression = async (parsed: ParsedApprovalRule[]) => {
const sourceExpr: EqualityExpr = {
type: ExprType.Condition,
operator: "_==_",
- args: ["source", source],
+ args: ["source", Risk_Source[source]],
};
const levelExpr: EqualityExpr = {
type: ExprType.Condition,