From 4137923c2e27bdab3130390835986facc139425d Mon Sep 17 00:00:00 2001 From: Soufiane Fariss Date: Thu, 1 Aug 2024 21:53:08 +0200 Subject: [PATCH] dynamic: revert to showing 1 match per rule --- webui/src/utils/rdocParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/utils/rdocParser.js b/webui/src/utils/rdocParser.js index 9df89fb34..f6352d637 100644 --- a/webui/src/utils/rdocParser.js +++ b/webui/src/utils/rdocParser.js @@ -6,7 +6,7 @@ * @param {number} [maxMatches=500] - Maximum number of matches to parse per rule * @returns {Array} - Parsed tree data for the TreeTable component */ -export function parseRules(rules, flavor, layout, maxMatches = 20) { +export function parseRules(rules, flavor, layout, maxMatches = 1) { return Object.entries(rules).map(([ruleName, rule], index) => { const ruleNode = { key: `${index}`,