Skip to content

Commit

Permalink
Merge pull request #79 from cap-js/RenameBug
Browse files Browse the repository at this point in the history
Rename Attachments Bug
  • Loading branch information
yashmeet29 authored Nov 5, 2024
2 parents d82d3b4 + f6fbbdc commit dd3143d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
## Version 1.2.2

### Fixed
App crash issue on update of fields when no attachments are added.

- App crash issue on update of fields when no attachments are added.
- Attachment getting renamed even when duplicate attachment of same name exists.

## Version 1.2.1

Expand Down
2 changes: 1 addition & 1 deletion lib/sdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ async isFileNameDuplicateInDrafts(data,req) {
token
);

if (response.status == undefined && response.response.status !=200) {
if (response.status != 200) {
//modify req.data.attachments
for(let i = 0; i < req.data.attachments.length; i++) {
let attachmentUpdate = req.data.attachments[i];
Expand Down

0 comments on commit dd3143d

Please sign in to comment.