Skip to content

Commit ecbf4d4

Browse files
committed
PB-390: Nested Page Builder content can fail to save when action is performed quickly
1 parent 01b1631 commit ecbf4d4

File tree

2 files changed

+5
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+5
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/master-format/render/frame.js

Lines changed: 3 additions & 1 deletion
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/master-format/render/frame.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function countContentTypes(rootContainer: ContentTypeCollectionInterface, count?
142142
function render(message: {stageId: string, tree: TreeItem}) {
143143
return new Promise((resolve, reject) => {
144144
createRenderTree(message.stageId, message.tree).then((rootContainer: ContentTypeCollectionInterface) => {
145+
console.log("createRenderTree");
145146
const element = document.createElement("div");
146147
/**
147148
* Setup an event on the element to observe changes and count the expected amount of content types are
@@ -198,6 +199,7 @@ function createRenderTree(
198199
tree.data,
199200
parent !== null ? tree.children.length : null,
200201
).then((contentType: ContentTypeCollectionInterface) => {
202+
console.log("content type");
201203
// Ensure we retain the original tree ID's
202204
contentType.id = tree.id;
203205
if (tree.children.length > 0) {

0 commit comments

Comments
 (0)