From 3f7649bc1b222ed713c842ae516192b4f97f36a9 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Mon, 8 Mar 2021 14:01:36 -0500 Subject: [PATCH] Fix error when setting scale on views that are missing attributes --- macrovision.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macrovision.js b/macrovision.js index 1ebf5d57..b6c6600c 100644 --- a/macrovision.js +++ b/macrovision.js @@ -1097,8 +1097,8 @@ function configEntityOptions(entity, view) { } else { updateSizes(true); } - updateEntityOptions(entity, view); - updateViewOptions(entity, view); + updateEntityOptions(entity, entity.view); + updateViewOptions(entity, entity.view); }); scaleInput.addEventListener("keydown", e => { @@ -1295,6 +1295,7 @@ function configViewOptions(entity, view) { } function updateViewOptions(entity, view, changed) { + console.log(entity, view) Object.entries(entity.views[view].attributes).forEach(([key, val]) => { if (key != changed) { const input = document.querySelector("#options-view-" + key + "-input");