Skip to content

Commit

Permalink
fix: default sort for day-items in Calendar block (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini authored and pnicolli committed Dec 20, 2024
1 parent 9965f50 commit be2f1df
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 be2f1df

Please sign in to comment.