update search datatable
This commit is contained in:
parent
e174146678
commit
d1f889c996
|
|
@ -250,12 +250,7 @@ export const DataTableAll = ({
|
||||||
if (query !== '') {
|
if (query !== '') {
|
||||||
setTData(
|
setTData(
|
||||||
data.filter((obj) =>
|
data.filter((obj) =>
|
||||||
Object.values(obj).some(
|
Object.values(obj)?.find((c: any) => c.toString().normalize('NFC').toLowerCase().includes(query.normalize('NFC').toLowerCase())))
|
||||||
(value: any) =>
|
|
||||||
value !== null &&
|
|
||||||
value.toString().toLowerCase().includes(query.toLowerCase()),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
if (pagination) {
|
if (pagination) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue