Skip to content

Commit

Permalink
Merge pull request #768 from navikt/feature/hydration-fix
Browse files Browse the repository at this point in the history
Fiks konsekvent sortering på både server og klient
  • Loading branch information
kenove authored Aug 21, 2024
2 parents 5036dcd + 5e8096f commit b8fdc93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/app/(sok)/_components/filters/FiltersMobile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,6 @@ function FiltersMobile({ onCloseClick, searchResult, query, dispatchQuery, aggre
initialValues={aggregations.engagementTypes}
updatedValues={searchResult && searchResult.aggregations.engagementTypes}
/>

{/* TODO: COMMENT IN WHEN FILTER IS READY BACKEND
<Education
query={query}
dispatch={dispatchQuery}
initialValues={aggregations.education}
updatedValues={searchResult && searchResult.aggregations.education}
/>
*/}
</>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(sok)/_components/filters/Locations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function Locations({ locations, query, dispatch, updatedValues }) {
<div>
{location.subLocations &&
location.subLocations
.sort((a, b) => a.key.localeCompare(b.key))
.sort((a, b) => a.key.localeCompare(b.key, "no"))
.map((subLocation) => (
<Checkbox
name={
Expand Down

0 comments on commit b8fdc93

Please sign in to comment.