Skip to content

Commit

Permalink
chore(ui): fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
taymoor89 committed Nov 29, 2024
1 parent 96f5496 commit 5b646ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-components/src/hooks/useEndlessScrollList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) : (
<span id="endlessScrollListLastItemRef" ref={lastLisItemRef as LegacyRef<HTMLSpanElement>} />
)}
Expand Down

0 comments on commit 5b646ba

Please sign in to comment.