Skip to content

Commit

Permalink
Allow saving draft with empty body #1052
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Apr 4, 2023
1 parent af9b778 commit b0dda8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/View/Popup/Compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ export class ComposePopupView extends AbstractViewPopup {
isHtml = this.oEditor.isHtml();

let Text = this.oEditor.getData().trim();
if (!Text.length) {
if (!draft && !Text.length) {
throw i18n('COMPOSE/ERROR_EMPTY_BODY');
}
if (isHtml) {
Expand Down

0 comments on commit b0dda8d

Please sign in to comment.