diff --git a/Client/src/Components/Table/index.jsx b/Client/src/Components/Table/index.jsx index 570460d30..3cef178f1 100644 --- a/Client/src/Components/Table/index.jsx +++ b/Client/src/Components/Table/index.jsx @@ -34,7 +34,6 @@ import { useTheme } from "@emotion/react"; const DataTable = ({ headers, data, config = { emptyView: "No data" } }) => { const theme = useTheme(); - if ((headers?.length ?? 0) === 0) { return "No data"; } @@ -58,7 +57,7 @@ const DataTable = ({ headers, data, config = { emptyView: "No data" } }) => { - {(data?.length ?? 0 === 0) ? ( + {(data?.length ?? 0) === 0 ? (