diff --git a/frontend/src/lib/hooks/useResizeObserver.ts b/frontend/src/lib/hooks/useResizeObserver.ts index 880e82115e61a..c99e2679c6dce 100644 --- a/frontend/src/lib/hooks/useResizeObserver.ts +++ b/frontend/src/lib/hooks/useResizeObserver.ts @@ -17,7 +17,7 @@ export function useResizeObserver(opts?: { ref?: RefObject | T | null | undefined onResize?: (response: ResizeResponse) => void debounceMs?: number -}): { ref: RefCallback | RefObject } & ResizeResponse { +}): { ref: RefCallback } & ResizeResponse { const [size, setSize] = useState({}) const setSizeDebounced = useDebouncedCallback((value: ResizeResponse) => setSize(value), opts?.debounceMs ?? 100)