From 9922305ac50a9c64ba07bc040de167f5fedf142f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 3 May 2023 02:09:51 +0200 Subject: [PATCH] Fixed grouping for `entityGroups.id`. Unlike the other entity groupings, which are 4-layered (`grouping -> group -> entity_id -> entity`), the grouping by ID only needs 3 layers (`grouping -> entity_id -> entity`). --- .../webapp/src/components/panels/Entities/Index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 d5303c337e..c99ccf34c3 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue @@ -187,9 +187,13 @@ export default { if (entity[attr] == null) return - if (!this.entityGroups[attr][entity[attr]]) - this.entityGroups[attr][entity[attr]] = {} - this.entityGroups[attr][entity[attr]][entity.id] = entity + if (attr == 'id') + this.entityGroups[attr][entity[attr]] = entity + else { + if (!this.entityGroups[attr][entity[attr]]) + this.entityGroups[attr][entity[attr]] = {} + this.entityGroups[attr][entity[attr]][entity.id] = entity + } }) },