Commit d29b0834 authored by Lukas Burgey's avatar Lukas Burgey

Prevent a fetch loop

parent 13b10be7
......@@ -205,7 +205,10 @@ export class UserService {
private fetch(): void {
this.http.get('/backend/api/state').subscribe(
(data: t.StateAPIResult) => this.stateAPIUpdate(data),
this.logErrorAndFetch(),
(err: any) => {
console.log('Error in fetch:', err);
this.snackBar.open('Error. Retry sometime later');
}
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment