Skip to content

Commit

Permalink
Handled undefined case
Browse files Browse the repository at this point in the history
  • Loading branch information
Umang-Rajkarnikar committed Apr 1, 2024
1 parent 5c660d0 commit 687c38b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/leo-client-app/src/components/SchedulerTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Stack gap={1}>
Expand Down
2 changes: 1 addition & 1 deletion src/leo-client-app/src/pages/test-playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Stack gap={1}>
Expand Down

0 comments on commit 687c38b

Please sign in to comment.