Skip to content

Commit

Permalink
fix: erase search param when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Jun 27, 2024
1 parent a21f830 commit 056772d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/apps/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ export const Component: FC = () => {
onChange={(value) => {
navigate({
pathname: '/apps',
search: `?${createSearchParams({
search: value,
})}`,
search: value
? `?${createSearchParams({
search: value,
})}`
: '',
});
setSearch(value);
}}
Expand Down

0 comments on commit 056772d

Please sign in to comment.