We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10ae11b commit 4b38191Copy full SHA for 4b38191
components/frontapp/actions/create-message-template/create-message-template.mjs
@@ -69,9 +69,15 @@ export default {
69
70
formData.append("name", name);
71
formData.append("body", body);
72
- formData.append("subject", subject);
73
- formData.append("folder_id", folderId);
74
- formData.append("inbox_ids", inboxIds);
+ if (subject !== undefined) {
+ formData.append("subject", subject);
+ }
75
+ if (folderId !== undefined) {
76
+ formData.append("folder_id", folderId);
77
78
+ if (inboxIds !== undefined) {
79
+ formData.append("inbox_ids", inboxIds);
80
81
82
for (const attachment of attachments) {
83
const {
0 commit comments