From 559a6b317d2af0937b0b7cd120568e24a50602cb Mon Sep 17 00:00:00 2001 From: Cris Date: Tue, 21 May 2024 14:03:40 +0200 Subject: [PATCH] Fixed multiple display of child software --- public/js/components/filter/Filter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/components/filter/Filter.js b/public/js/components/filter/Filter.js index b4440cac1..a7d93523e 100644 --- a/public/js/components/filter/Filter.js +++ b/public/js/components/filter/Filter.js @@ -543,8 +543,8 @@ export const CoreFilterCmpt = { // create children array if not done yet if (!parent._children) parent._children = []; - // append the child - parent._children.push(child); + // if child is not included in children array, append the child + if (!parent._children.includes(child)) parent._children.push(child); // parent found return true;