Skip to content

Commit

Permalink
chore(ui): update deprecated RxJS syntax (#12675)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
  • Loading branch information
agilgur5 committed Apr 29, 2024
1 parent f1ab5aa commit ad823a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/app/shared/retry-observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ export class RetryObservable<E, V> {

public start(v?: V) {
this.stop();
this.subscription = this.watch(v).subscribe(
next => {
this.subscription = this.watch(v).subscribe({
next: next => {
if (next) {
this.onItem(next);
} else {
this.onOpen();
}
},
e => {
error: e => {
this.stop();
this.onError(e);
this.reconnect();
}
);
});
}

// Must invoke on component unload.
Expand Down

0 comments on commit ad823a5

Please sign in to comment.