Skip to content

Commit

Permalink
Fixing bulk resources selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark2307 committed Dec 25, 2024
1 parent 5f51726 commit f6b2206
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand All @@ -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)
Expand Down Expand Up @@ -94,6 +97,10 @@ function Dashboard() {
}
}, [])

useEffect(() => {
selectItems([])
},[location.pathname])

const toastConfig = Store(state => state.toastConfig)
const setToastConfig = Store(state => state.setToastConfig)

Expand Down

0 comments on commit f6b2206

Please sign in to comment.