forked from platypush/platypush
Only pass children that aren't configuration values to the entities
This commit is contained in:
parent
7868d6fe37
commit
c215c693f5
1 changed files with 5 additions and 1 deletions
|
@ -236,7 +236,11 @@ export default {
|
|||
|
||||
childrenByParentId(parentId) {
|
||||
return Object.values(this.entities).
|
||||
filter((entity) => entity.parent_id === parentId).
|
||||
filter(
|
||||
(entity) => entity
|
||||
&& entity.parent_id === parentId
|
||||
&& !entity.is_configuration
|
||||
).
|
||||
reduce((obj, entity) => {
|
||||
obj[entity.id] = entity
|
||||
return obj
|
||||
|
|
Loading…
Reference in a new issue