Disabling no waiting list entry from preventing reservation deletion

This commit is contained in:
Collin Duncan 2023-09-14 09:56:51 +02:00
parent 415f9d3b8b
commit 00b7dfec7a
No known key found for this signature in database

View file

@ -250,9 +250,8 @@ export class BaanReserverenService {
private async deleteWaitingListEntryRowById(id: number) {
const rows = await this.page.$x(`//td[text()="${id}"]/parent::tr`)
if (rows.length === 0) {
throw new WaitingListEntryDeletionError(
'Cannot find waiting list entry to delete',
)
this.loggerService.error('Cannot find waiting list entry to delete')
return
}
const acceptedDialogPromise = new Promise<void>((res, rej) => {