Disabling no waiting list entry from preventing reservation deletion
This commit is contained in:
parent
415f9d3b8b
commit
00b7dfec7a
1 changed files with 2 additions and 3 deletions
|
|
@ -250,9 +250,8 @@ export class BaanReserverenService {
|
||||||
private async deleteWaitingListEntryRowById(id: number) {
|
private async deleteWaitingListEntryRowById(id: number) {
|
||||||
const rows = await this.page.$x(`//td[text()="${id}"]/parent::tr`)
|
const rows = await this.page.$x(`//td[text()="${id}"]/parent::tr`)
|
||||||
if (rows.length === 0) {
|
if (rows.length === 0) {
|
||||||
throw new WaitingListEntryDeletionError(
|
this.loggerService.error('Cannot find waiting list entry to delete')
|
||||||
'Cannot find waiting list entry to delete',
|
return
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const acceptedDialogPromise = new Promise<void>((res, rej) => {
|
const acceptedDialogPromise = new Promise<void>((res, rej) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue