Skip to content

Commit 9481c95

Browse files
Update webview-ui/src/components/chat/CommandExecution.tsx
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 7799f0c commit 9481c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/CommandExecution.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const CommandExecution = ({ executionId, text, icon, title }: CommandExec
4343

4444
if (outputIndex !== -1) {
4545
// Text is split into command and output
46-
const cmd = text!.slice(0, outputIndex).trim()
46+
const cmd = (text ?? '').slice(0, outputIndex).trim()
4747
// Skip the newline and "Output:" text
4848
const afterSeparator = outputIndex + 1 + outputSeparator.length
4949
let startOfOutput = afterSeparator

0 commit comments

Comments
 (0)