Enviroment variable patch

This commit is contained in:
2026-01-02 19:40:00 +01:00
parent f83e735807
commit fd3b8bda02
4 changed files with 70 additions and 46 deletions
+11 -5
View File
@@ -34,12 +34,18 @@ export function AddVariableDialog({
const handleAdd = () => {
if (!key) return;
const newVariable: EnvVariable = { key, value, secret };
setEnvGroups((env) => ({
...env,
setEnvGroups((prev) => ({
...prev,
[selectedApp]: {
...currentGroup,
variables: [...currentGroup.variables, newVariable],
...prev[selectedApp],
variables: {
...prev[selectedApp].variables,
[key]: {
value,
secret,
},
},
},
}));