Skip to content

Commit

Permalink
Fallback data length to 0 on product dialog (saleor#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw authored Oct 31, 2022
1 parent cac3e43 commit da8e4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AssignProductDialog/AssignProductDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const AssignProductDialog: React.FC<AssignProductDialogProps> = props => {
id={scrollableTargetId}
>
<InfiniteScroll
dataLength={products?.length}
dataLength={products?.length ?? 0}
next={onFetchMore}
hasMore={hasMore}
scrollThreshold="100px"
Expand Down

0 comments on commit da8e4e5

Please sign in to comment.