From 5b646baf25f856b1364a2531db1e585fa8b2f570 Mon Sep 17 00:00:00 2001 From: Taimoor Aslam Date: Fri, 29 Nov 2024 18:00:49 +0100 Subject: [PATCH] chore(ui): fix type issue --- packages/ui-components/src/hooks/useEndlessScrollList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-components/src/hooks/useEndlessScrollList.tsx b/packages/ui-components/src/hooks/useEndlessScrollList.tsx index 4f0ba1118..1c576bb8a 100644 --- a/packages/ui-components/src/hooks/useEndlessScrollList.tsx +++ b/packages/ui-components/src/hooks/useEndlessScrollList.tsx @@ -85,7 +85,7 @@ export const useEndlessScrollList = (items: unknown[], options: UseEndlessScroll {options?.showRef !== false && ( <> {options?.refFunction ? ( - options.refFunction(lastLisItemRef as unknown as Element) + (options.refFunction(lastLisItemRef as unknown as Element) ?? null) ) : ( } /> )}