mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Fix convert query params for 'true' subPopulate
This commit is contained in:
parent
8c2fb155b8
commit
0c205d0f58
@ -186,7 +186,7 @@ const convertPopulateObject = (populate, schema) => {
|
||||
return acc;
|
||||
}
|
||||
|
||||
if (subPopulate && 'on' in subPopulate) {
|
||||
if (typeof subPopulate === 'object' && 'on' in subPopulate) {
|
||||
return {
|
||||
...acc,
|
||||
[key]: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user