We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 039d0ba commit e3b7c9dCopy full SHA for e3b7c9d
site/src/pages/WorkspacesPage/WorkspacesPage.tsx
@@ -59,6 +59,13 @@ const WorkspacesPage: FC = () => {
59
const updateWorkspace = useWorkspaceUpdate(queryKey)
60
const [checkedWorkspaces, setCheckedWorkspaces] = useState<Workspace[]>([])
61
const [isDeletingAll, setIsDeletingAll] = useState(false)
62
+ const [urlSearchParams] = searchParamsResult
63
+
64
+ // We want to uncheck the selected workspaces always when the url changes
65
+ // because of filtering or pagination
66
+ useEffect(() => {
67
+ setCheckedWorkspaces([])
68
+ }, [urlSearchParams])
69
70
return (
71
<>
0 commit comments