Skip to content

Commit

Permalink
fixed search crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Oct 21, 2024
1 parent de933a1 commit 98ca8a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/project-editor/ui-components/Output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ const MessageContent = observer(

let text =
typeof this.props.message.text == "string"
? this.props.message.text.toString()
: this.props.message.text;
? this.props.message.text
: this.props.message.text?.toString() ?? "";

Check failure on line 207 in packages/project-editor/ui-components/Output.tsx

View workflow job for this annotation

GitHub Actions / release (ubuntu-latest)

Property 'toString' does not exist on type 'never'.

Check failure on line 207 in packages/project-editor/ui-components/Output.tsx

View workflow job for this annotation

GitHub Actions / release (windows-2019)

Property 'toString' does not exist on type 'never'.
if (text.length > MAX_OUTPUT_MESSAGE_TEXT_SIZE) {
text = text.substring(0, MAX_OUTPUT_MESSAGE_TEXT_SIZE) + "...";
}
Expand Down

0 comments on commit 98ca8a7

Please sign in to comment.