* add another type conversion

This commit is contained in:
Ingo Fischer
2021-09-03 09:59:11 +02:00
parent ee88a50c70
commit f0925ea83b
+1 -1
View File
@@ -354,7 +354,7 @@ function main() {
continue;
}
let val = entity.attributes[attr];
if (typeof val === 'object' && val !== null) {
if ((typeof val === 'object' && val !== null) || Array.isArray(val)) {
val = JSON.stringify(entity.attributes[attr]);
}
adapter.setForeignState(id + attr, {val, ack: true, lc, ts});