diff --git a/packages/ng-query/CHANGELOG.md b/packages/ng-query/CHANGELOG.md index 0dc009f..70dac61 100644 --- a/packages/ng-query/CHANGELOG.md +++ b/packages/ng-query/CHANGELOG.md @@ -2,6 +2,15 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [1.0.3](https://github-personal/ngneat/query/compare/ng-query-1.0.2...ng-query-1.0.3) (2023-10-30) + + +### Bug Fixes + +* **query:** 🐞 assign data ([a10f4a0](https://github-personal/ngneat/query/commit/a10f4a057fd1e5a11ed08a3581048e7ad57b42eb)) + + + ## [1.0.2](https://github-personal/ngneat/query/compare/ng-query-1.0.1...ng-query-1.0.2) (2023-10-30) diff --git a/packages/ng-query/package.json b/packages/ng-query/package.json index 5aa7ed0..571925a 100644 --- a/packages/ng-query/package.json +++ b/packages/ng-query/package.json @@ -1,6 +1,6 @@ { "name": "@ngneat/query", - "version": "1.0.2", + "version": "1.0.3", "description": "Primitives for managing, caching and syncing asynchronous and remote data in Angular", "license": "MIT", "repository": "ngneat/query", diff --git a/packages/ng-query/src/lib/operators.ts b/packages/ng-query/src/lib/operators.ts index e525472..b34b37c 100644 --- a/packages/ng-query/src/lib/operators.ts +++ b/packages/ng-query/src/lib/operators.ts @@ -36,15 +36,13 @@ export function mapResultsData( mapFn: (data: ReturnTypes) => R ): OperatorFunction> { return map((result) => { - let data; - const mappedResult = { isLoading: someRequestsStatusOf(result, 'loading'), isSuccess: allRequestsStatusOf(result, 'success'), isFetching: result.some((r) => r.isFetching), isError: someRequestsStatusOf(result, 'error'), error: result.find((r) => r.isError)?.error, - data, + data: undefined, } as QueryObserverResult; if (mappedResult.isSuccess) {