Skip to content

Commit

Permalink
Send undefined when checkboxes are false
Browse files Browse the repository at this point in the history
We want to either filter by true or not filter at all
  • Loading branch information
razzeee committed Jan 29, 2024
1 parent 553f011 commit c969608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/moderation/ModerationTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const ModerationTabs: FunctionComponent = () => {
],
queryFn: async ({ signal }) => {
const apps = await moderationApi.getModerationAppsModerationAppsGet(
filterNewSubmissionsQuery,
showHandledQuery,
filterNewSubmissionsQuery === false ? undefined : true,
showHandledQuery === false ? undefined : true,
PAGE_SIZE,
offset,
{
Expand Down

0 comments on commit c969608

Please sign in to comment.