From dbd7fc6f9530ca683e3413b3abd8ab9373fc5e7b Mon Sep 17 00:00:00 2001 From: nessi Date: Thu, 9 Jul 2026 15:05:51 +0200 Subject: [PATCH] fix: escape arrow operator in conntrack flow display and remove push trigger from CI workflow Remove push event trigger from GitHub Actions CI workflow to run only on pull requests, wrap arrow operator in curly braces to prevent JSX parsing issues in conntrack flow source/destination display --- .github/workflows/ci.yml | 1 - frontend/src/pages/Nodes.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb14d8b..74f4aa0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,6 @@ name: CI on: - push: pull_request: jobs: diff --git a/frontend/src/pages/Nodes.tsx b/frontend/src/pages/Nodes.tsx index 114ba9b..bda8135 100644 --- a/frontend/src/pages/Nodes.tsx +++ b/frontend/src/pages/Nodes.tsx @@ -168,7 +168,7 @@ export function Nodes() { const flow = item as Record; return (
-
{String(flow.source_ip)}:{String(flow.source_port ?? "")} -> {String(flow.destination_ip)}:{String(flow.destination_port ?? "")}
+
{String(flow.source_ip)}:{String(flow.source_port ?? "")} {"->"} {String(flow.destination_ip)}:{String(flow.destination_port ?? "")}
{String(flow.protocol ?? "unknown")} · {String(flow.bytes ?? 0)} bytes · {String(flow.packets ?? 0)} packets · {String(flow.state ?? "unknown")}
);