Skip to content

Commit b05ef64

Browse files
committed
PB-500 make column group compatible to pre-existing content - set default appearance if it is not already set
1 parent a1d183b commit b05ef64

File tree

2 files changed

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

2 files changed

+4
-0
lines changed

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

Lines changed: 2 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-group/preview.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export default class Preview extends PreviewCollection {
157157
}
158158
});
159159

160+
const appearance = this.contentType.dataStore.get("appearance") ? this.contentType.dataStore.get("appearance") : 'default';
161+
this.contentType.dataStore.set("appearance", appearance);
160162
this.contentType.dataStore.set("non_empty_column_count", numCols - numEmptyColumns);
161163
this.contentType.dataStore.set("max_grid_size", getMaxGridSize());
162164
this.contentType.dataStore.set("initial_grid_size", this.contentType.dataStore.get("grid_size"));

0 commit comments

Comments
 (0)