fix loading spinner / no results bug
This commit is contained in:
@@ -68,7 +68,7 @@ export function DataTable({
|
|||||||
{hasData ? (typeof children === 'function' ? children(result) : children) : null}
|
{hasData ? (typeof children === 'function' ? children(result) : children) : null}
|
||||||
{isLoading && <Loading position="page" />}
|
{isLoading && <Loading position="page" />}
|
||||||
{!isLoading && !hasData && !query && <Empty />}
|
{!isLoading && !hasData && !query && <Empty />}
|
||||||
{noResults && <Empty message={formatMessage(messages.noResultsFound)} />}
|
{!isLoading && noResults && <Empty message={formatMessage(messages.noResultsFound)} />}
|
||||||
</div>
|
</div>
|
||||||
{allowPaging && hasData && (
|
{allowPaging && hasData && (
|
||||||
<Pager
|
<Pager
|
||||||
|
|||||||
Reference in New Issue
Block a user