From d41ea47347c387c403b7a809369f843df562f313 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 7 Nov 2024 10:31:36 +0100 Subject: [PATCH] fix(ui): assist sort --- .../components/shared/LiveSessionList/LiveSessionList.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx index ea7c10fa0..e027fb1ae 100644 --- a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx @@ -27,7 +27,7 @@ function LiveSessionList() { const metaList = customFieldStore.list; const metaListLoading = customFieldStore.isLoading; - var timeoutId: any; + let timeoutId: any; const { filters } = filter; const hasUserFilter = filters.map((i: any) => i.key).includes(KEYS.USERID); const sortOptions = [{ label: 'Start Time', value: 'timestamp' }].concat( @@ -100,7 +100,10 @@ function LiveSessionList() {
searchStoreLive.edit({ order: state })} + onChange={(state: any) => { + searchStoreLive.edit({ order: state }) + void searchStoreLive.fetchSessions(); + }} sortOrder={filter.order} />