We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06267d2 + 8aad8b4 commit 2bf84a3Copy full SHA for 2bf84a3
client/src/components/Sidebar.tsx
@@ -113,14 +113,15 @@ const Sidebar = ({
113
</Button>
114
{showEnvVars && (
115
<div className="space-y-2">
116
- {Object.entries(env).map(([key, value]) => (
117
- <div key={key} className="grid grid-cols-[1fr,auto] gap-2">
+ {Object.entries(env).map(([key, value], idx) => (
+ <div key={idx} className="grid grid-cols-[1fr,auto] gap-2">
118
<div className="space-y-1">
119
<Input
120
placeholder="Key"
121
value={key}
122
onChange={(e) => {
123
const newEnv = { ...env };
124
+ delete newEnv[key];
125
newEnv[e.target.value] = value;
126
setEnv(newEnv);
127
}}
0 commit comments