Updates
This commit is contained in:
parent
97b135c352
commit
2ca489b8bb
@ -37,7 +37,11 @@ export default function ServiceClusterServer({
|
|||||||
(typeof ServerTerminalTargets)[number]["name"]
|
(typeof ServerTerminalTargets)[number]["name"]
|
||||||
>(service.logs?.[0] ? "logs" : "shell");
|
>(service.logs?.[0] ? "logs" : "shell");
|
||||||
|
|
||||||
const [log, setLog] = useState<string>();
|
const first_log = service.logs?.[0];
|
||||||
|
const intial_logs =
|
||||||
|
typeof first_log == "string" ? first_log : first_log?.cmd;
|
||||||
|
|
||||||
|
const [log, setLog] = useState<string | undefined>(intial_logs);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user