From d33bcb400d4babf28ab8d43474223353e93a0754 Mon Sep 17 00:00:00 2001 From: sayan-truefoundry <136362719+sayan-truefoundry@users.noreply.github.com> Date: Mon, 11 Nov 2024 12:23:17 +0530 Subject: [PATCH] change view once all collections are deleted --- frontend/src/screens/dashboard/docsqa/settings/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/screens/dashboard/docsqa/settings/index.tsx b/frontend/src/screens/dashboard/docsqa/settings/index.tsx index 8e30635d..c25b2cda 100644 --- a/frontend/src/screens/dashboard/docsqa/settings/index.tsx +++ b/frontend/src/screens/dashboard/docsqa/settings/index.tsx @@ -80,6 +80,8 @@ const DocsQASettings = () => { ) { setSelectedCollection(collectionsNames[0]) } + } else { + setSelectedCollection(undefined) } // eslint-disable-next-line react-hooks/exhaustive-deps }, [collectionsNames])