From c4ca851390450becdcb6d3ec6b3c31cf5089e17d Mon Sep 17 00:00:00 2001 From: Paco Date: Mon, 9 Dec 2024 19:04:57 +0100 Subject: [PATCH] style: clean up code --- core/search/js/search.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/search/js/search.js b/core/search/js/search.js index c09d774e19..af726c50a5 100644 --- a/core/search/js/search.js +++ b/core/search/js/search.js @@ -703,8 +703,7 @@ search.prototype.get_search_group_operator = function(search_group) { let operator_value = '$and' // Default (first level) // Get search_group direct children - const children = search_group.children - // console.log("children:",children); + const children = search_group.children || [] // Iterate to find .search_group_operator div const len = children.length