log filtering
parent
f53d289a05
commit
7c2f66186f
|
@ -150,6 +150,11 @@ export default function LogCard({
|
|||
const filteredLogs = logs.filter((log) => {
|
||||
const logType = log.charAt(0);
|
||||
|
||||
// some other logs which have no type defined
|
||||
if (logType !== "I" && logType !== "W" && logType !== "E") {
|
||||
return true;
|
||||
}
|
||||
|
||||
return (
|
||||
(checkboxInfoChecked && logType === "I") ||
|
||||
(checkboxWarningChecked && logType === "W") ||
|
||||
|
|
Loading…
Reference in New Issue