diff --git a/src/leo-client-app/src/components/SchedulerTerminal.tsx b/src/leo-client-app/src/components/SchedulerTerminal.tsx index 24406fe..88d3f31 100644 --- a/src/leo-client-app/src/components/SchedulerTerminal.tsx +++ b/src/leo-client-app/src/components/SchedulerTerminal.tsx @@ -65,7 +65,7 @@ const SchedulerTerminal = ({ disabled = false }: Props) => { }); // Split string by lines - const messages = res.output?.toString().split("\n") ?? ""; + const messages = res?.output?.toString().split("\n") ?? ""; return ( diff --git a/src/leo-client-app/src/pages/test-playground/index.tsx b/src/leo-client-app/src/pages/test-playground/index.tsx index 00fae2e..35fea3d 100644 --- a/src/leo-client-app/src/pages/test-playground/index.tsx +++ b/src/leo-client-app/src/pages/test-playground/index.tsx @@ -53,7 +53,7 @@ function TestPlayground() { const res = await sendCommand(commandReq); - const messages = res.output?.toString().split("\n") ?? ""; + const messages = res?.output?.toString().split("\n") ?? ""; return (