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 () => {
loading = true;
variableValues = {};
for (const variable of Object.keys(variables)) {
if (variables[variable]?.default !== undefined) {
variableValues[variable] = variables[variable].default;
const newValues = {};
const keys = Object.keys(variables ?? {});
for (const key of keys) {
const variable = variables[key];
if (variable?.default !== undefined) {
newValues[key] = variable.default;
} else {
variableValues[variable] = '';
newValues[key] = '';
}
}
variableValues = newValues;
loading = false;
await tick();