Skip to content

Commit

Permalink
fix(web): error on load assets page (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice authored Nov 1, 2024
1 parent 4358dfb commit 9e5137e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/beta/hooks/useLoadMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ 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) {
if (data?.length === 0) {
onLoadMoreRef.current?.();
return;
}
Expand Down

0 comments on commit 9e5137e

Please sign in to comment.