diff --git a/src/components/Message.vue b/src/components/Message.vue index ce8f7e3..1343c97 100644 --- a/src/components/Message.vue +++ b/src/components/Message.vue @@ -79,6 +79,10 @@ export default { mapRemoteMessage: function (message) { let mapped = {}; + + // If the msg is an array, take the frist value + if (Array.isArray(message)) message = message[0]; + // map property from message into mapped according to mapping config (only if field has a value): for (const prop in this.item.mapping) if (message[this.item.mapping[prop]])