Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: boolean initial descending and groupDescending #631

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: boolParam
  • Loading branch information
megheaiulian committed Nov 13, 2024

Unverified

This user has not yet uploaded their public signing key.
commit 031852334ee0e7ed5b2631f18abda50cb854be65
4 changes: 2 additions & 2 deletions lib/use-sort-and-group-options.js
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ export const useSortAndGroupOptions = (
suffix: '-sortOn',
}),
[descending, setDescending] = useHashState(
settings.descending,
boolParam(settings.descending),
hashParam,
{
suffix: '-descending',
@@ -42,7 +42,7 @@ export const useSortAndGroupOptions = (
suffix: '-groupOn',
}),
[groupOnDescending, setGroupOnDescending] = useHashState(
settings.groupOnDescending,
boolParam(settings.groupOnDescending),
hashParam,
{ suffix: '-groupOnDescending', read: boolParam },
),