Skip to content

Commit 55e86f6

Browse files
committed
MC-3966: Block type errors when no block is selected and grid is empty
- fix formatting error
1 parent 893ea00 commit 55e86f6

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/block

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/block/preview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ export default class Preview extends BasePreview {
112112
this.placeholderText("");
113113
}
114114

115-
if (!data[identifierName] || (data[identifierName] && data[identifierName].length === 0) || data.template.length === 0) {
115+
if (!data[identifierName] || (data[identifierName] && data[identifierName].length === 0) ||
116+
data.template.length === 0) {
116117
this.showBlockPreview(false);
117118
this.placeholderText(this.messages.NOT_SELECTED);
118119
return;

0 commit comments

Comments
 (0)