Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from MetadataWorks/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
StuLast authored Apr 26, 2023
2 parents c31705b + 86a9493 commit 470d2d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/pages/published-standards/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ export default function Standards({ data, schemaData, host }) {
const { getSelections, updateQuery } = useQueryContext();

useEffect(() => {
const currentSelections = getSelections();
const order = currentSelections.order || 'asc'
const orderBy = currentSelections.orderBy || 'name'
const mandated = 'true';
const selections = { ...getSelections(), mandated };
const selections = { ...currentSelections, mandated, order, orderBy };
updateQuery(selections, { replace: true });
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down

0 comments on commit 470d2d4

Please sign in to comment.