From 422357601626ed596268ba02ca773882e5e2ede1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 15 Sep 2023 00:45:38 +0200 Subject: [PATCH] We should always update the entities cache on addEntity. Updating the entity cache only when we receive an event from a root entity means that we lose events sent by individual child entities. --- .../http/webapp/src/components/panels/Entities/Index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue index 5e851cb90..e8db9f465 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue @@ -168,10 +168,11 @@ export default { methods: { addEntity(entity) { + this.entities[entity.id] = entity + if (entity.parent_id != null) return // Only group entities that have no parent - this.entities[entity.id] = entity; ['id', 'type', 'category', 'plugin'].forEach((attr) => { if (entity[attr] == null) return