Skip to content

Commit

Permalink
Cast block layouts to array before sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Dec 1, 2022
1 parent 360563e commit c442265
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function deleteBlockLayoutByClientId( data, clientId ) {
*/
function getBlockLayoutsOrderedByYCoord( data ) {
// Only enabled for root level blocks.
return orderBy( data, 'y' );
return orderBy( Object.values( data ), 'y' );
}

/**
Expand Down

0 comments on commit c442265

Please sign in to comment.