Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/core/src/utils/buttons-app-starter/appStarter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export class AppStarter {

if (!isActive) {
this.masterPromise = Promise.resolve()
this.masterResolve = () => {}
this.masterReject = () => {}
Comment on lines +60 to +61
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

When isActive is false, the masterResolve and masterReject functions are not initialized. This can lead to errors later if these functions are called before being properly set up. Initializing them with empty functions ensures that they are always available, preventing potential issues.

Consider initializing masterResolve and masterReject with empty functions to avoid potential errors when isActive is false.

Suggested change
this.masterResolve = () => {}
this.masterReject = () => {}
this.masterResolve = () => {};
this.masterReject = () => {};

return
}

Expand Down
Loading