diff --git a/src/components/organizations/Organization.tsx b/src/components/organizations/Organization.tsx index 85d704a..dcbc800 100644 --- a/src/components/organizations/Organization.tsx +++ b/src/components/organizations/Organization.tsx @@ -24,7 +24,6 @@ import type { MirrorOrgRequest, MirrorOrgResponse } from "@/types/mirror"; import { useSSE } from "@/hooks/useSEE"; import { useFilterParams } from "@/hooks/useFilterParams"; import { toast } from "sonner"; -import { useLiveRefresh } from "@/hooks/useLiveRefresh"; import { useConfigStatus } from "@/hooks/useConfigStatus"; import { useNavigation } from "@/components/layout/MainLayout"; @@ -33,7 +32,6 @@ export function Organization() { const [isLoading, setIsLoading] = useState(true); const [isDialogOpen, setIsDialogOpen] = useState(false); const { user } = useAuth(); - const { registerRefreshCallback } = useLiveRefresh(); const { isGitHubConfigured } = useConfigStatus(); const { navigationKey } = useNavigation(); const { filter, setFilter } = useFilterParams({ @@ -108,20 +106,6 @@ export function Organization() { fetchOrganizations(); }, [fetchOrganizations, navigationKey]); // Include navigationKey to trigger on navigation - // Register with global live refresh system - useEffect(() => { - // Only register for live refresh if GitHub is configured - if (!isGitHubConfigured) { - return; - } - - const unregister = registerRefreshCallback(() => { - fetchOrganizations(); - }); - - return unregister; - }, [registerRefreshCallback, fetchOrganizations, isGitHubConfigured]); - const handleRefresh = async () => { const success = await fetchOrganizations(); if (success) {