Skip to content

Commit

Permalink
fix(generic): emit network error failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed May 13, 2020
1 parent a85200e commit 46fdc7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/@dataflow/generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export abstract class Generic {
of(Generic.cacheData[this.cachePath]),
this._request([data, preErrors]).pipe(
map((rsp): DataFlowNode => [rsp, []]),
catchError((err): DataFlowNode => [{}, [err]]),
catchError((err): Observable<DataFlowNode> => of([{}, [err]])),
tap((x: DataFlowNode) => {
if (this.cacheSupport) Generic.cacheData[this.cachePath] = x;
})
Expand Down

0 comments on commit 46fdc7e

Please sign in to comment.