diff --git a/webui/src/components/RuleMatchesTable.vue b/webui/src/components/RuleMatchesTable.vue index 058a5527..c5fa505e 100644 --- a/webui/src/components/RuleMatchesTable.vue +++ b/webui/src/components/RuleMatchesTable.vue @@ -12,8 +12,7 @@ :rowHover="true" :indentation="1.3" selectionMode="single" - @nodeExpand="onNodeSelect" - @nodeSelect="onNodeSelect" + @node-select="onNodeSelect" :pt="{ row: ({ instance }) => ({ oncontextmenu: (event) => onRightClick(event, instance) @@ -199,6 +198,9 @@ const onNodeSelect = (node) => { const nodeKey = node.key const nodeType = node.data.type + // We only expand rule and match locations, if not return + if (nodeType !== 'rule' && nodeType !== 'match location') return + // If the node is already expanded, collapse it and its children if (expandedKeys.value[nodeKey]) { delete expandedKeys.value[nodeKey]