This commit is contained in:
Timothy Jaeryang Baek
2026-03-22 05:39:53 -05:00
parent 93415a48e8
commit 0dcd6ac983
@@ -33,14 +33,17 @@
const init = async () => { const init = async () => {
loading = true; loading = true;
variableValues = {}; const newValues = {};
for (const variable of Object.keys(variables)) { const keys = Object.keys(variables ?? {});
if (variables[variable]?.default !== undefined) { for (const key of keys) {
variableValues[variable] = variables[variable].default; const variable = variables[key];
if (variable?.default !== undefined) {
newValues[key] = variable.default;
} else { } else {
variableValues[variable] = ''; newValues[key] = '';
} }
} }
variableValues = newValues;
loading = false; loading = false;
await tick(); await tick();