Skip to content

Commit 78b1765

Browse files
nathanjosiahirenelagno
authored andcommitted
MC-3790: Automate MFTF
1 parent 3dc596e commit 78b1765

File tree

2 files changed

+9
-4
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+9
-4
lines changed

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

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export default class Preview extends BasePreview {
5959
public processBlockData(data: DataObject): void {
6060
// Only load if something changed
6161
this.displayPreviewPlaceholder(data, "block_id");
62-
this.processRequest(data, "block_id", "title");
62+
if (data.block_id && data.template.length != 0) {
63+
this.processRequest(data, "block_id", "title");
64+
}
6365
}
6466

6567
/**

0 commit comments

Comments
 (0)