fix: update gateway name to 'castle-gateway' for correct identification

This commit is contained in:
2026-02-21 01:26:58 -08:00
parent 233ee453d4
commit bb367ab632

View File

@@ -22,7 +22,7 @@ export function ComponentDetailPage() {
const isDown = health?.status === "down"
const isTool = component?.roles.includes("tool") ?? false
const { data: toolDetail } = useToolDetail(isTool ? (name ?? "") : "")
const isGateway = name === "gateway"
const isGateway = name === "castle-gateway"
const { data: caddyfile } = useCaddyfile(isGateway)
const [showUnit, setShowUnit] = useState(false)
const { data: unitData } = useSystemdUnit(name ?? "", showUnit && !!component?.systemd)