Skip to content

Commit

Permalink
fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
mineraux committed Mar 11, 2023
1 parent 61839e3 commit 6b27b1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ui-dsfr/pages/SoftwareCatalog/SoftwareCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ export function SoftwareCatalog(props: Props) {
)
);

useEffect(() => {
softwareCatalog.updateFilter({
"key": "sort",
"value": route.params.sort?.length ? route.params.sort : undefined
});
}, [route.params.sort]);

const onSearchChange = useConstCallback<
SoftwareCatalogControlledProps["onSearchChange"]
>(search =>
Expand Down

0 comments on commit 6b27b1d

Please sign in to comment.