Skip to content

Commit d7a1ccc

Browse files
committed
PB-108 for legacy content before PB-108 and PB-500 check if parent is column line, if not don't bother with resetRemoveOnLastColumn
1 parent b909ece commit d7a1ccc

File tree

2 files changed

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

2 files changed

+9
-0
lines changed

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

Lines changed: 5 additions & 0 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/column/preview.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ export default class Preview extends PreviewCollection {
334334
// can happen if the column is moved within the same column group
335335
return;
336336
}
337+
if (parentContentType.config.name != "column-line") {
338+
//for legacy content in preview mode before stage is initialized, the parent may not be a column line
339+
return;
340+
}
337341
const siblings = parentContentType.children();
338342
const siblingColumnLines = parentContentType.parentContentType.children();
339343
let totalColumnCount = 0;

0 commit comments

Comments
 (0)