From 78dacdb130166b038b95af6da6dc30413bda1ad1 Mon Sep 17 00:00:00 2001 From: Ben White Date: Thu, 23 Nov 2023 14:27:17 +0100 Subject: [PATCH] Fix --- frontend/src/lib/hooks/useResizeObserver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)