Skip to content

Commit 6c5ae49

Browse files
committed
100302: Add an error to prevent piping or subscribing to undefined when no href is present
1 parent 9f6616a commit 6c5ae49

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/app/core/data/base/base-data.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ export class BaseDataService<T extends CacheableObject> implements HALDataServic
356356
}),
357357
);
358358
}
359+
throw new Error(`Can't check whether there is a cached response for an empty href$`);
359360
}
360361

361362
hasCachedErrorResponse(href$: string | Observable<string>): Observable<boolean> {

0 commit comments

Comments
 (0)