Changing event listener to only register once when deleting waiting list entries
This commit is contained in:
parent
7d6b45032b
commit
bac0e3971d
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ export class BaanReserverenService {
|
|||
}
|
||||
|
||||
const acceptedDialogPromise = new Promise<void>((res, rej) => {
|
||||
this.page.on('dialog', async (dialog) => {
|
||||
this.page.once('dialog', async (dialog) => {
|
||||
await dialog.accept().catch(rej)
|
||||
res()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue