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: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 3 additions and 2 deletions

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>