Only pass children that aren't configuration values to the entities

This commit is contained in:
Fabio Manganiello 2023-01-03 23:25:43 +01:00
parent 7868d6fe37
commit c215c693f5
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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