diff --git a/bin/web/js/layer.js b/bin/web/js/layer.js index fa8712e..ca5be60 100644 --- a/bin/web/js/layer.js +++ b/bin/web/js/layer.js @@ -111,7 +111,11 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) { range: [axes[a].minValue, axes[a].maxValue], }); if (typeof audio === 'object' && + typeof audio.getSavedMapping() === 'object' && + typeof audio.getSavedMapping()[this.id()] === 'object' && typeof audio.getSavedMapping()[this.id()][`fontVariationAxes.${axes[a].name}`] === 'object' && + typeof audio.getMapping() === 'object' && + typeof audio.getMapping()[this.id()] === 'object' && typeof audio.getMapping()[this.id()][`fontVariationAxes.${axes[a].name}`] === 'object' && tp.getPanel() !== null) { doThese.push(() => {