pull/911/merge
Antonio Sandoval M. 2025-08-01 02:28:47 -04:00 committed by GitHub
commit 0612a4873e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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]])