fix(attachments): prevent crash when attachment fields are non-string#39273
fix(attachments): prevent crash when attachment fields are non-string#39273metaloozee wants to merge 4 commits into
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughA bug fix that ensures non-string inputs in FieldsAttachment are coerced to strings before being processed by MarkdownText. The Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Proposed changes (including videos or screenshots)
This PR fixes a client-side crash when opening a channel that contains integration attachments with non-string field values (for example, integers).
In
DefaultAttachment.tsx, attachment field title/value were processed with.replace()under the assumption they were strings.When integrations sent numeric values, rendering failed and the channel could not be opened in the browser app.
Changes:
Issue(s)
Closes #39264
Summary by CodeRabbit