Skip to content

Commit a029644

Browse files
committed
Adjusting inboxIds array format
1 parent a561db5 commit a029644

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/frontapp/actions/create-message-template/create-message-template.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,12 @@ export default {
8181
if (folderId !== undefined) {
8282
formData.append("folder_id", folderId);
8383
}
84-
if (inboxIds !== undefined) {
84+
if (typeof inboxIds === "string") {
8585
formData.append("inbox_ids", inboxIds);
86+
} else if (Array.isArray(inboxIds)) {
87+
for (const inboxId of inboxIds) {
88+
formData.append("inbox_ids", inboxId);
89+
}
8690
}
8791

8892
for (const attachment of attachments) {

0 commit comments

Comments
 (0)