Skip to content

Commit

Permalink
return undefined when doc doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSimonides authored and GrandSchtroumpf committed Jul 14, 2021
1 parent ea8c05b commit 68cd916
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export function awaitQuery<Service extends CollectionService<CollectionState<E>>
*/
const getAllSubQueries = <T>(parentQuery: Query<T>, entity: T): Observable<T> => {
if (!entity) {
// Nothing found at path
return of(undefined);
}
// There is no subqueries return the entity
Expand Down

0 comments on commit 68cd916

Please sign in to comment.