Skip to content

Commit

Permalink
Revert "fix: restore original user store poll on leaving workspace de…
Browse files Browse the repository at this point in the history
…tails"

This reverts commit c869ce7.
  • Loading branch information
ashtonG committed Jan 17, 2024
1 parent 6d3f9ff commit e8d6448
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions webui/react/src/pages/WorkspaceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ const WorkspaceDetails: React.FC = () => {
const loadableWorkspace = useObservable(workspaceStore.getWorkspace(id));
const workspace = Loadable.getOrElse(undefined, loadableWorkspace);

useEffect(() => {
userStore.startPolling();
return () => {
userStore.startPolling({ delay: 60_000 });
};
}, []);
useEffect(() => userStore.startPolling(), []);

const fetchGroups = useCallback(async (): Promise<void> => {
try {
Expand Down

0 comments on commit e8d6448

Please sign in to comment.