Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix attachment uploading issue caused by ES2022 spread operator
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.
- Loading branch information