Skip to content
Snippets Groups Projects
Commit 5dd23f7d authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

[FIX] web_editor: prevent crash when publishing a payment in edit mode

When updateStyleInfo is called, the options is not necessarily on
editable area (eg: when update the toolbar for image)
parent 9500f8d3
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ define([
if (!styleInfo) {
return;
}
var isAirMode = layoutInfo.editor().data('options').airMode;
var isAirMode = (layoutInfo.editor().data('options') || {}).airMode;
if (!isAirMode) {
modules.toolbar.update(layoutInfo.toolbar(), styleInfo);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment