From ec27fa225001beb1b88a5e89f7a8ff10fd29a76f Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Thu, 17 Apr 2025 13:06:20 +0200 Subject: [PATCH] ui: patch 1.21 session search --- .../SessionsTabOverview/components/SessionList/SessionList.tsx | 2 +- frontend/app/mstore/sessionStore.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx b/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx index f818a83eb..072c2299c 100644 --- a/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx +++ b/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx @@ -51,7 +51,7 @@ function SessionList() { useEffect(() => { if (!searchStore.urlParsed) return; void searchStore.fetchSessions(true, isBookmark); - }, [location.pathname]); + }, [searchStore.urlParsed]); const NO_CONTENT = React.useMemo(() => { diff --git a/frontend/app/mstore/sessionStore.ts b/frontend/app/mstore/sessionStore.ts index 95d92f00d..eac5fd685 100644 --- a/frontend/app/mstore/sessionStore.ts +++ b/frontend/app/mstore/sessionStore.ts @@ -223,6 +223,7 @@ export default class SessionStore { } fetchSessions = async (params = {}, force = false) => { + if (this.loadingSessions) return; runInAction(() => { this.loadingSessions = true; })