Skip to content

Commit

Permalink
fix(web): no project shows up when sort is first created (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice authored Nov 1, 2024
1 parent e9a0d16 commit b2e6027
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/src/beta/hooks/useLoadMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export default ({ data, onLoadMore }: Props) => {

// Check on data change
useEffect(() => {
// This is useful to projects, since current query doesn't take visualizer project only
if (data.length === 0) {
onLoadMoreRef.current?.();
return;
}
checkForLoadMore();
}, [data, checkForLoadMore]);

Expand Down

0 comments on commit b2e6027

Please sign in to comment.