diff --git a/packages/core-data/src/queried-data/reducer.js b/packages/core-data/src/queried-data/reducer.js index f6349c5b25a11c..3a0c8869175c47 100644 --- a/packages/core-data/src/queried-data/reducer.js +++ b/packages/core-data/src/queried-data/reducer.js @@ -233,7 +233,7 @@ const receiveQueries = compose( [ return { itemIds: getMergedItemIds( state?.itemIds || [], - action.items.flatMap( ( item ) => item?.[ key ] ?? [] ), + action.items.map( ( item ) => item?.[ key ] ).filter( Boolean ), page, perPage ),