diff --git a/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts index e87eed438..9bf141e78 100644 --- a/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts +++ b/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts @@ -92,16 +92,16 @@ export abstract class EditDialogComponent break } this.networkActive = true - serverResponse.subscribe( - (result) => { + serverResponse.subscribe({ + next: (result) => { this.activeModal.close() this.success.emit(result) }, - (error) => { + error: (error) => { this.error = error.error this.networkActive = false - } - ) + }, + }) } cancel() {