Skip to content

Commit

Permalink
fix: default sort for day-items in Calendar block
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Dec 18, 2024
1 parent 2504f8d commit 5598855
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ItaliaTheme/Blocks/Calendar/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const Body = ({ data, block, inEditMode, path, onChangeBlock, reactSlick }) => {
const adaptedQuery = Object.assign(
{
fullobjects: 1,
sort_on: !Object.keys(_querystring).includes('sort_on') ? 'start' : null,
},
...copyFields.map((name) =>
Object.keys(_querystring).includes(name)
Expand Down

0 comments on commit 5598855

Please sign in to comment.