fix: env variable overwrite and action menu clipping in create function wizard#3097
Conversation
…verwritten, add portal to fix action menu clipping
Greptile SummaryThis PR fixes two bugs in the Create Function wizard's variable management: the
Confidence Score: 4/5The env-variable overwrite fix is correct and self-contained. The new The matching-logic fix in src/lib/components/variables/variableActionMenu.svelte — specifically the Important Files Changed
Reviews (9): Last reviewed commit: "fix: remove stopPropagation so outside-c..." | Re-trigger Greptile |
…nsure clicks register
…o fix clipping and click issues
Summary
Root cause
`updateVariableModal.svelte` line 25:
```js
// Before — undefined === undefined matches ALL unsaved variables
if (variable.$id === selectedVar.$id) { return pair; }
// After — fall back to key match when no $id exists
const match = selectedVar.$id
? variable.$id === selectedVar.$id
: variable.key === selectedVar.key;
return match ? pair : variable;
```
Test plan