Skip to content

Commit d44fb2d

Browse files
authored
fix: #6800, graphql parallel queries with different fallback locales (#8140)
## Description Fixes #6800 where parallel GraphQL queries with different locales / fallbackLocales do not return their data properly.
1 parent 852f9fc commit d44fb2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/payload/src/collections/dataloader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ const batchAndLoadDocs =
136136
depth,
137137
docID: doc.id,
138138
draft,
139-
fallbackLocale: req.fallbackLocale,
140-
locale: req.locale,
139+
fallbackLocale,
140+
locale,
141141
overrideAccess,
142142
showHiddenFields,
143143
transactionID: req.transactionID,

0 commit comments

Comments
 (0)