Skip to content

Commit 1e9ede3

Browse files
PB-166: Page Builder doesn't implement destroy method
1 parent 3b5c62c commit 1e9ede3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export default class ContentTypeCollection<P extends PreviewCollection = Preview
7575
* Destroys current instance and all children
7676
*/
7777
public destroy(): void {
78-
[...this.getChildren()()].forEach((elem: ContentTypeInterface) => {
79-
elem.destroy();
78+
[...this.getChildren()()].forEach((contentType: ContentTypeInterface) => {
79+
contentType.destroy();
8080
});
8181
super.destroy();
8282
}

0 commit comments

Comments
 (0)