From f6b2206c47255cfef8d6854fdfe9450eade0a344 Mon Sep 17 00:00:00 2001 From: Ark2307 Date: Wed, 25 Dec 2024 16:28:25 +0530 Subject: [PATCH] Fixing bulk resources selected --- .../polaris_web/web/src/apps/dashboard/pages/Dashboard.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/Dashboard.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/Dashboard.jsx index 6013a836fe..58e5824026 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/Dashboard.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/Dashboard.jsx @@ -14,6 +14,7 @@ import AlertsBanner from "./AlertsBanner"; import dashboardFunc from "./transform"; import homeRequests from "./home/api"; import WelcomeBackDetailsModal from "../components/WelcomeBackDetailsModal"; +import useTable from "../components/tables/TableContext"; function Dashboard() { @@ -24,6 +25,8 @@ function Dashboard() { const setCollectionsMap = PersistStore(state => state.setCollectionsMap) const setHostNameMap = PersistStore(state => state.setHostNameMap) + const { selectItems } = useTable() + const navigate = useNavigate(); const allCollections = PersistStore(state => state.allCollections) @@ -94,6 +97,10 @@ function Dashboard() { } }, []) + useEffect(() => { + selectItems([]) + },[location.pathname]) + const toastConfig = Store(state => state.toastConfig) const setToastConfig = Store(state => state.setToastConfig)