Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

fix(site): preserve lazy loading of the systemd table (#2602)

spatiumstas4886479cd436
diff --git a/internal/site/src/components/routes/system.tsx b/internal/site/src/components/routes/system.tsx
index 8c9596767..3565bf200 100644
--- a/internal/site/src/components/routes/system.tsx
+++ b/internal/site/src/components/routes/system.tsx
@@ -21,11 +21,11 @@ import {
LazySmartTable,
LazySystemdTable,
LazyZfsTable,
+ SystemdTable,
} from "./system/lazy-tables"
import { LoadAverageChart } from "./system/charts/load-average-chart"
import { ContainerIcon, CpuIcon, HardDriveIcon, NetworkIcon, PackageIcon, TerminalSquareIcon } from "lucide-react"
import { GpuIcon } from "../ui/icons"
-import SystemdTable from "../systemd-table/systemd-table"
import ContainersTable from "../containers-table/containers-table"
const SEMVER_0_14_0 = parseSemVer("0.14.0")
diff --git a/internal/site/src/components/routes/system/lazy-tables.tsx b/internal/site/src/components/routes/system/lazy-tables.tsx
index 1dde0ceee..96f843f7c 100644
--- a/internal/site/src/components/routes/system/lazy-tables.tsx
+++ b/internal/site/src/components/routes/system/lazy-tables.tsx
@@ -36,7 +36,7 @@ export function LazyZfsTable({ systemId }: { systemId: string }) {
)
}
-const SystemdTable = lazy(() => import("../../systemd-table/systemd-table"))
+export const SystemdTable = lazy(() => import("../../systemd-table/systemd-table"))
export function LazySystemdTable({ systemId }: { systemId: string }) {
const { isIntersecting, ref } = useIntersectionObserver()