Skip to content

Commit

Permalink
More field to orderby changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 10, 2023
1 parent c7b3077 commit d2f213f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/dataviews/dataviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function DataViews( {
currentView.sort
? [
{
id: currentView.sort.field,
id: currentView.sort.orderby,
desc:
currentView.sort
.direction === 'desc',
Expand All @@ -82,7 +82,7 @@ export default function DataViews( {
const [ { id, desc } ] = sort;
return {
...currentView,
sort: { field: id, direction: desc ? 'desc' : 'asc' },
sort: { orderby: id, direction: desc ? 'desc' : 'asc' },
};
} );
},
Expand Down

0 comments on commit d2f213f

Please sign in to comment.