Skip to content

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

fix: shouldn't throw error if raw string has no content (#13155)

ecmadaob98e3c4cc020
diff --git a/frontend/src/plugins/cel/logic/stringify.ts b/frontend/src/plugins/cel/logic/stringify.ts
index e4be2e4c1b..aa6eee1b0f 100644
--- a/frontend/src/plugins/cel/logic/stringify.ts
+++ b/frontend/src/plugins/cel/logic/stringify.ts
@@ -57,7 +57,7 @@ function stringifyExpr(expr: Expr): string {
const result = stringifyExpr(expr.comprehensionExpr.result!);
return `comprehension(${expr.comprehensionExpr.iterVar} in ${iterRange}; ${expr.comprehensionExpr.accuVar} = ${accuInit}; ${loopCondition}; ${loopStep}; ${result})`;
} else {
- throw new Error("Unknown expression type");
+ return "";
}
}