log filtering

main
alex 2023-10-17 23:01:28 +02:00
parent f53d289a05
commit 7c2f66186f
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ export default function LogCard({
const filteredLogs = logs.filter((log) => { const filteredLogs = logs.filter((log) => {
const logType = log.charAt(0); const logType = log.charAt(0);
// some other logs which have no type defined
if (logType !== "I" && logType !== "W" && logType !== "E") {
return true;
}
return ( return (
(checkboxInfoChecked && logType === "I") || (checkboxInfoChecked && logType === "I") ||
(checkboxWarningChecked && logType === "W") || (checkboxWarningChecked && logType === "W") ||