Skip to content

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

fix: component re-render cause the state reset (#17119)

ecmadao2b7933def204
diff --git a/frontend/src/components/ExprEditor/ConditionGroup.vue b/frontend/src/components/ExprEditor/ConditionGroup.vue
index aab44da82d..95d035a3aa 100644
--- a/frontend/src/components/ExprEditor/ConditionGroup.vue
+++ b/frontend/src/components/ExprEditor/ConditionGroup.vue
@@ -64,12 +64,14 @@
<div class="flex-1 space-y-1 overflow-x-hidden">
<ConditionGroup
v-if="isConditionGroupExpr(operand)"
+ :key="i"
:expr="operand"
@remove="removeConditionGroup(operand)"
@update="$emit('update')"
/>
<Condition
v-if="isConditionExpr(operand)"
+ :key="`${i}.${operand.args[0]}.${operand.operator}`"
:expr="operand"
@remove="removeCondition(operand)"
@update="$emit('update')"