Skip to content

Commit bac1e03

Browse files
barnabasJmarkerikson
authored andcommitted
fix logic
1 parent 36feac5 commit bac1e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolkit/src/query/core/buildThunks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export function buildThunks<
242242
api.endpoints[endpointName] as ApiEndpointQuery<any, any>
243243
).select(args)(getState())
244244
let ret: PatchCollection = {
245-
cacheEntryFound: true,
245+
cacheEntryFound: false,
246246
patches: [],
247247
inversePatches: [],
248248
undo: () =>
@@ -254,7 +254,7 @@ export function buildThunks<
254254
return ret
255255
}
256256
if ('data' in currentState) {
257-
ret.cacheEntryFound = false
257+
ret.cacheEntryFound = true
258258
if (isDraftable(currentState.data)) {
259259
const [, patches, inversePatches] = produceWithPatches(
260260
currentState.data,

0 commit comments

Comments
 (0)