Skip to content

Commit 53b1aa5

Browse files
committed
MC-3496: Static block widget is broken in inline mode
Wrap in try/catch
1 parent 21b9ea8 commit 53b1aa5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/web/mage/adminhtml/wysiwyg/widget.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ define([
275275
}
276276

277277
if (e != undefined && e.id) { //eslint-disable-line eqeqeq
278-
widgetCode = Base64.idDecode(e.id);
278+
try {
279+
widgetCode = Base64.idDecode(e.id);
280+
} catch (ex) {
281+
return false;
282+
}
279283

280284
if (widgetCode.indexOf('{{widget') !== -1) {
281285
this.optionValues = new Hash({});

0 commit comments

Comments
 (0)