mapping, check against undefined
This commit is contained in:
parent
2d55ef11b0
commit
dc6e668d0c
1 changed files with 4 additions and 0 deletions
|
@ -111,7 +111,11 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) {
|
||||||
range: [axes[a].minValue, axes[a].maxValue],
|
range: [axes[a].minValue, axes[a].maxValue],
|
||||||
});
|
});
|
||||||
if (typeof audio === 'object' &&
|
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.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' &&
|
typeof audio.getMapping()[this.id()][`fontVariationAxes.${axes[a].name}`] === 'object' &&
|
||||||
tp.getPanel() !== null) {
|
tp.getPanel() !== null) {
|
||||||
doThese.push(() => {
|
doThese.push(() => {
|
||||||
|
|
Loading…
Reference in a new issue