Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jun 6, 2024
1 parent 794add1 commit 3748d71
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/core-data/src/queried-data/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ export function items( state = {}, action ) {
...state[ context ],
...action.items.reduce( ( accumulator, value ) => {
const itemId = value?.[ key ];
if ( ! itemId ) {
return accumulator;
}

accumulator[ itemId ] = conservativeMapItem(
state?.[ context ]?.[ itemId ],
Expand Down Expand Up @@ -169,9 +166,6 @@ export function itemIsComplete( state = {}, action ) {
...state[ context ],
...action.items.reduce( ( result, item ) => {
const itemId = item?.[ key ];
if ( ! itemId ) {
return result;
}

// Defer to completeness if already assigned. Technically the
// data may be outdated if receiving items for a field subset.
Expand Down

0 comments on commit 3748d71

Please sign in to comment.