Skip to content

Commit 7985c89

Browse files
committed
MC-3095: Display TypeScript errors within local build process
- Resolve issue with indexOf check
1 parent 6520819 commit 7985c89

File tree

2 files changed

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

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 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/content-type/buttons/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class Preview extends PreviewCollection {
7878

7979
createButtonItemPromise.then((button: ContentTypeInterface) => {
8080
this.parent.addChild(button);
81-
this.isLiveEditing(!!this.parent.children().indexOf(button));
81+
this.isLiveEditing(this.parent.children().indexOf(button) !== -1);
8282
return button;
8383
}).catch((error: Error) => {
8484
console.error(error);

0 commit comments

Comments
 (0)