forked from platypush/platypush
The data
attribute on EntityUpdateEvent
shouldn't be taken into account for flashing updates
This commit is contained in:
parent
e8d6717fcb
commit
bba582875a
1 changed files with 5 additions and 2 deletions
|
@ -30,8 +30,11 @@ export default {
|
||||||
valuesEqual(a, b) {
|
valuesEqual(a, b) {
|
||||||
a = {...a}
|
a = {...a}
|
||||||
b = {...b}
|
b = {...b}
|
||||||
delete a.updated_at
|
for (const key of ['updated_at', 'data']) {
|
||||||
delete b.updated_at
|
delete a[key]
|
||||||
|
delete b[key]
|
||||||
|
}
|
||||||
|
|
||||||
return this.objectsEqual(a, b)
|
return this.objectsEqual(a, b)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue