diff --git a/src/components/crud/grid/GridDatatable.js b/src/components/crud/grid/GridDatatable.js index 8c895ba..fb37edc 100644 --- a/src/components/crud/grid/GridDatatable.js +++ b/src/components/crud/grid/GridDatatable.js @@ -8,10 +8,11 @@ import { ChevronDown } from 'react-feather'; import { useSelector } from 'react-redux'; +import { Card } from 'reactstrap'; import LoadingSpinner from '../../../@core/components/spinner/Loading-spinner'; export const GridDatabase = props => { const { loading } = useSelector(state => state.loadingReducer); - return props.total <= 0 ? ( + return props[`${props.handlerPageChange ? 'total' : 'count'}`] <= 0 ? (