Skip to content

Commit dd3143d

Browse files
authored
Merge pull request #79 from cap-js/RenameBug
Rename Attachments Bug
2 parents d82d3b4 + f6fbbdc commit dd3143d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
77
## Version 1.2.2
88

99
### Fixed
10-
App crash issue on update of fields when no attachments are added.
10+
11+
- App crash issue on update of fields when no attachments are added.
12+
- Attachment getting renamed even when duplicate attachment of same name exists.
1113

1214
## Version 1.2.1
1315

lib/sdm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ async isFileNameDuplicateInDrafts(data,req) {
366366
token
367367
);
368368

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

0 commit comments

Comments
 (0)