Skip to content

Commit

Permalink
fix empty cache value check in transform
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk committed Dec 4, 2023
1 parent 797e8e8 commit 6cc6a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const clearNonFinishedStates = <T extends unknown>(
states: Record<string, LoadingState<T>>,
): Record<string, LoadingState<T>> =>
Object.entries(states).reduce((acc, [key, value]) => {
if (value.loading || !value.fetched || !value) {
if (value.loading || !value.fetched || !value.data) {
return acc;
}

Expand Down

0 comments on commit 6cc6a1f

Please sign in to comment.