Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Attachment-related issues #1958

Merged
merged 2 commits into from
Jan 8, 2024
Merged

fix: Attachment-related issues #1958

merged 2 commits into from
Jan 8, 2024

Conversation

baumandm
Copy link
Contributor

@baumandm baumandm commented Jan 8, 2024

Fixes two issues with attachments:

  • uploading files to an Insight was broken by the switch to ES2022
  • newly uploaded avatars were not saving correctly

Per ES2022, keys with undefined values are applied via the spread, overwriting any existing value.  This impacts us here because `attachment` has optional `name` and `path` fields.  So need to take care to only apply them when they exist.
@baumandm baumandm requested a review from a team as a code owner January 8, 2024 18:33
@baumandm baumandm merged commit 420e134 into main Jan 8, 2024
3 checks passed
@baumandm baumandm deleted the fix/attachments branch January 8, 2024 18:50
@eg-oss-ci
Copy link
Contributor

🎉 This PR is included in version 3.26.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants