diff --git a/manage-view/src/components/ListLog/ListLog.jsx b/manage-view/src/components/ListLog/ListLog.jsx index 914df9f..27f6582 100644 --- a/manage-view/src/components/ListLog/ListLog.jsx +++ b/manage-view/src/components/ListLog/ListLog.jsx @@ -5,7 +5,7 @@ import { getListLog } from "../../api/apiLog"; import "./ListLog.css"; const ListLog = () => { const [listFile, setListFile] = useState([]); - const [status, setStatus] = useState(); + const [status, setStatus] = useState(200); const [nameSearch, setNameSearch] = useState(""); const getListFile = async () => { try { @@ -41,7 +41,7 @@ const ListLog = () => { setNameSearch(e.target.value) }}> - {listFile?.filter((f)=>f.search(nameSearch)!==-1).map((file) => ( + {listFile?.filter((f)=>f.toLocaleLowerCase().search(nameSearch.toLocaleLowerCase())!==-1).map((file) => (