Skip to content

Commit

Permalink
fix(modal): remove promise rejection when no overlay exists bc promis…
Browse files Browse the repository at this point in the history
…e should only be rejected when an error appears during dismiss of an existing overlay
  • Loading branch information
baldummy committed Jun 16, 2022
1 parent 9902ace commit 15671a3
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ export class BalModalController {

async dismissAll(data?: any, role?: string): Promise<void> {
const overlays = getOverlays(document, this.tag)
if (overlays.length < 1) {
return Promise.reject('overlay does not exist')
}
await Promise.all(overlays.map(o => o.dismiss(data, role)))
}

Expand Down

0 comments on commit 15671a3

Please sign in to comment.