Re-sync the list of entities when the entities component is mounted

This commit is contained in:
Fabio Manganiello 2022-05-01 15:34:45 +02:00
parent f760d44224
commit 5aa3750807
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -277,7 +277,7 @@ export default {
},
},
mounted() {
async mounted() {
this.subscribe(
this.onEntityUpdate,
'on-entity-update',
@ -290,7 +290,8 @@ export default {
'platypush.message.event.entities.EntityDeleteEvent'
)
this.sync()
await this.sync()
await this.refresh()
},
}
</script>