Skip to content

Commit 7c104e1

Browse files
PB-166: Page Builder doesn't implement destroy method
1 parent 3b76a73 commit 7c104e1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/stage.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/stage.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ export default class Stage {
160160
* @param params
161161
*/
162162
private onContentTypeRemoved(params: ContentTypeRemovedParamsInterface): void {
163-
params.parentContentType.removeChild(params.contentType);
163+
if (params.parentContentType) {
164+
params.parentContentType.removeChild(params.contentType);
165+
}
164166
}
165167
}

0 commit comments

Comments
 (0)