Skip to content

Commit 782e9ef

Browse files
committed
Fix NoData from always showing
1 parent ff952de commit 782e9ef

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,13 @@ export default React.createClass({
755755
{...paginationProps.rest}
756756
/>
757757
) : null}
758-
<NoDataComponent
759-
{...noDataProps}
760-
>
761-
{_.normalizeComponent(noDataText)}
762-
</NoDataComponent>
758+
{!pageRows.length && (
759+
<NoDataComponent
760+
{...noDataProps}
761+
>
762+
{_.normalizeComponent(noDataText)}
763+
</NoDataComponent>
764+
)}
763765
<LoadingComponent
764766
loading={loading}
765767
loadingText={loadingText}

0 commit comments

Comments
 (0)