fix addvar on array using setGlobalVariable

This commit is contained in:
LenAnderson 2024-01-16 22:20:46 +00:00
parent 044bd149cd
commit d1966d9d5f
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ function addLocalVariable(name, value) {
const parsedValue = JSON.parse(currentValue); const parsedValue = JSON.parse(currentValue);
if (Array.isArray(parsedValue)) { if (Array.isArray(parsedValue)) {
parsedValue.push(value); parsedValue.push(value);
setGlobalVariable(name, JSON.stringify(parsedValue)); setLocalVariable(name, JSON.stringify(parsedValue));
return parsedValue; return parsedValue;
} }
} catch { } catch {