Commit c2849a18 authored by PDuarte's avatar PDuarte

search

parent 6108d3e1
...@@ -41,6 +41,7 @@ const DataTableServerSide = () => { ...@@ -41,6 +41,7 @@ const DataTableServerSide = () => {
// ** Function to handle filter // ** Function to handle filter
const handleFilter = value => { const handleFilter = value => {
setSearchValue(value) setSearchValue(value)
setSearchTerm(value)
dispatch( dispatch(
getData_projects({ getData_projects({
...@@ -118,8 +119,6 @@ const DataTableServerSide = () => { ...@@ -118,8 +119,6 @@ const DataTableServerSide = () => {
const isFiltered = Object.keys(filters).some(function (k) { const isFiltered = Object.keys(filters).some(function (k) {
return filters[k].length > 0 return filters[k].length > 0
}) })
console.log(store)
console.log(store.allDataProjects)
if (store.allDataProjects.length > 0) { if (store.allDataProjects.length > 0) {
return store.allDataProjects return store.allDataProjects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment