Skip to content
Snippets Groups Projects
Verified Commit d6a4d3f2 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

#7342 - Delete resource into message composer

parent 94c86f5a
No related branches found
No related tags found
No related merge requests found
...@@ -345,8 +345,10 @@ var MessageTree = { ...@@ -345,8 +345,10 @@ var MessageTree = {
}, },
deleteDocument : function(archive) { deleteDocument : function(archive) {
if (archive.document.length) { if (archive.document) {
delete archive.document; if (archive.document.length) {
delete archive.document;
}
} }
if (archive.archiveObject) { if (archive.archiveObject) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment