bail out if we dont have settings.

This commit is contained in:
Niels Lyngsø
2020-07-01 10:32:20 +02:00
parent 8f7194df36
commit d2678135fe

View File

@@ -242,6 +242,11 @@
return;
}
// if requesting to open settings but we dont have settings then return.
if (openSettings === true && blockObject.config.settingsElementTypeKey) {
return;
}
// make a clone to avoid editing model directly.
var blockContentClone = Utilities.copy(blockObject.content);
var blockSettingsClone = null;