diff --git a/src/pages/connections.tsx b/src/pages/connections.tsx index f85c54bf8019b965b0dbd6d7409337f0e610ee4d..c43e8a73a5ca751586b81c2a83a4a9c3cf9cefdf 100644 --- a/src/pages/connections.tsx +++ b/src/pages/connections.tsx @@ -44,12 +44,12 @@ const ConnectionsPage = () => { const filterConn = useMemo(() => { const orderFunc = orderOpts[curOrderOpt]; - const connetions = connData.connections.filter((conn) => + const connections = connData.connections.filter((conn) => (conn.metadata.host || conn.metadata.destinationIP)?.includes(filterText) ); - if (orderFunc) return orderFunc(connetions); - return connetions; + if (orderFunc) return orderFunc(connections); + return connections; }, [connData, filterText, curOrderOpt]); useEffect(() => { @@ -167,6 +167,7 @@ const ConnectionsPage = () => { fullWidth size="small" autoComplete="off" + spellCheck="false" variant="outlined" placeholder={t("Filter conditions")} value={filterText} diff --git a/src/pages/logs.tsx b/src/pages/logs.tsx index 54dd2b2efea178bcbe977a447804a5e1bd78b1ee..c13c19b1121b84844a01044c3acf617598df16c0 100644 --- a/src/pages/logs.tsx +++ b/src/pages/logs.tsx @@ -93,6 +93,7 @@ const LogPage = () => { fullWidth size="small" autoComplete="off" + spellCheck="false" variant="outlined" placeholder={t("Filter conditions")} value={filterText} diff --git a/src/pages/profiles.tsx b/src/pages/profiles.tsx index 68391033e558e68cdae0e9332d1dde5e690e6475..241a497a2d7a2138d722e3bbbae06991919c4240 100644 --- a/src/pages/profiles.tsx +++ b/src/pages/profiles.tsx @@ -149,6 +149,7 @@ const ProfilePage = () => { value={url} variant="outlined" autoComplete="off" + spellCheck="false" onChange={(e) => setUrl(e.target.value)} sx={{ input: { py: 0.65, px: 1.25 } }} placeholder={t("Profile URL")} diff --git a/src/pages/rules.tsx b/src/pages/rules.tsx index 6397d08a6c491bcf0f1e147966f88a40da7662cc..0bc0139d7d895c78bd6f7f51cb75906601c4f56a 100644 --- a/src/pages/rules.tsx +++ b/src/pages/rules.tsx @@ -37,6 +37,7 @@ const RulesPage = () => { size="small" autoComplete="off" variant="outlined" + spellCheck="false" placeholder={t("Filter conditions")} value={filterText} onChange={(e) => setFilterText(e.target.value)}