Feature/reports road items
This commit is contained in:
@@ -27,7 +27,17 @@ const DataTableProvider = ({ children, user_id, page_name, table_name, columns,
|
||||
JSON.stringify(sortData) !== JSON.stringify(initSort) ||
|
||||
JSON.stringify(filterData) !== JSON.stringify(initFilter);
|
||||
|
||||
const CheckFilterValues = Object.values(filterData).every((innerObject) => innerObject.value === "");
|
||||
const CheckFilterValues = Object.values(filterData).every((innerObject) => {
|
||||
if (innerObject.datatype === "date" && innerObject.filterMode === "between") {
|
||||
return (
|
||||
Array.isArray(innerObject.value) &&
|
||||
innerObject.value.length === 2 &&
|
||||
innerObject.value.every((v) => v === "")
|
||||
);
|
||||
} else {
|
||||
return innerObject.value === "";
|
||||
}
|
||||
});
|
||||
const CheckHideValues = Object.values(hideData).every((value) => value === true);
|
||||
|
||||
hasAnyConflict =
|
||||
|
||||
Reference in New Issue
Block a user