The `data` attribute on `EntityUpdateEvent` shouldn't be taken into account for flashing updates

This commit is contained in:
Fabio Manganiello 2022-11-27 00:56:23 +01:00
parent e8d6717fcb
commit bba582875a
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 5 additions and 2 deletions

View File

@ -30,8 +30,11 @@ export default {
valuesEqual(a, b) {
a = {...a}
b = {...b}
delete a.updated_at
delete b.updated_at
for (const key of ['updated_at', 'data']) {
delete a[key]
delete b[key]
}
return this.objectsEqual(a, b)
},
},