From 8ebb06fe8f414fe5d500b1f21038a0410a99623a Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Mon, 10 Oct 2022 15:43:43 +0800 Subject: [PATCH] [questions][fix] fix query params updating wrongly --- .../questions/QuestionSearchBar.tsx | 16 +++++---- apps/portal/src/pages/questions/index.tsx | 35 ++++++++++++++----- .../src/utils/questions/useSearchFilter.ts | 7 ---- 3 files changed, 36 insertions(+), 22 deletions(-) diff --git a/apps/portal/src/components/questions/QuestionSearchBar.tsx b/apps/portal/src/components/questions/QuestionSearchBar.tsx index a27f043b..d57c8a48 100644 --- a/apps/portal/src/components/questions/QuestionSearchBar.tsx +++ b/apps/portal/src/components/questions/QuestionSearchBar.tsx @@ -46,13 +46,15 @@ export default function QuestionSearchBar< value={sortValue} onChange={onSortChange} /> -