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) => (
{file}

diff --git a/manage-view/src/components/ShowLog/ShowLog.jsx b/manage-view/src/components/ShowLog/ShowLog.jsx index 37f7ad5..6bef7f7 100644 --- a/manage-view/src/components/ShowLog/ShowLog.jsx +++ b/manage-view/src/components/ShowLog/ShowLog.jsx @@ -6,7 +6,7 @@ import "./ShowLog.css"; const ShowLog = () => { let { name } = useParams(); const [log, setLog] = useState({}); - const [status, setStatus] = useState(); + const [status, setStatus] = useState(200); const getContentLog = async () => { try { const res = await axios.get(getLog + "/" + name); @@ -131,7 +131,7 @@ const ShowLog = () => { return (

- The file was not found or no errors were found in the file. + The file was not found.

);