diff --git a/src/hooks/useGetStreamInfo.tsx b/src/hooks/useGetStreamInfo.tsx index e843df96..628ce0ad 100644 --- a/src/hooks/useGetStreamInfo.tsx +++ b/src/hooks/useGetStreamInfo.tsx @@ -20,7 +20,6 @@ export const useGetStreamInfo = (currentStream: string, initialFetch: boolean) = refetchOnWindowFocus: false, refetchOnMount: false, enabled: initialFetch, - // currentStream !== '', onSuccess: (data) => { setStreamStore((store) => setStreamInfo(store, data)); }, diff --git a/src/pages/Stream/index.tsx b/src/pages/Stream/index.tsx index 2685e5e5..e784a87b 100644 --- a/src/pages/Stream/index.tsx +++ b/src/pages/Stream/index.tsx @@ -61,6 +61,7 @@ const Stream: FC = () => { const fetchSchema = useCallback(() => { setStreamStore(streamChangeCleanup); + getStreamInfoRefetch(); refetchSchema(); }, [currentStream]);