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 ca0019cf..031f81aa 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,7 +81,7 @@ export function awaitQuery> */ const getAllSubQueries = (parentQuery: Query, entity: T): Observable => { if (!entity) { - return throwError(`Nothing found at path : ${parentQuery.path}`); + return of(undefined); } // There is no subqueries return the entity if (!hasSubQueries(parentQuery)) {