diff --git a/new-log-viewer/src/components/Layout.tsx b/new-log-viewer/src/components/Layout.tsx index 3cbcde46..130f3748 100644 --- a/new-log-viewer/src/components/Layout.tsx +++ b/new-log-viewer/src/components/Layout.tsx @@ -208,12 +208,12 @@ const Layout = () => { }; const handleLogLevelSelectChange = (ev: React.ChangeEvent) => { - const selected = Array.from(ev.target.options) + const selected: LOG_LEVEL[] = Array.from(ev.target.options) .map((option) => option.selected && Number(option.value)) .filter((value) => "number" === typeof value); - setSelectedLogLevels(selected as number[]); - changeLogLevelFilter(selected as unknown as LogLevelFilter); + setSelectedLogLevels(selected); + changeLogLevelFilter(selected); }; /**