diff --git a/projects/akita-ng-fire/src/lib/utils/query/await-sync-query.ts b/projects/akita-ng-fire/src/lib/utils/query/await-sync-query.ts index 031f81a..17c56d1 100644 --- a/projects/akita-ng-fire/src/lib/utils/query/await-sync-query.ts +++ b/projects/akita-ng-fire/src/lib/utils/query/await-sync-query.ts @@ -81,6 +81,7 @@ export function awaitQuery> */ const getAllSubQueries = (parentQuery: Query, entity: T): Observable => { if (!entity) { + // Nothing found at path return of(undefined); } // There is no subqueries return the entity