From 751e132968470144cfca1c1b7ca22caf2c4c1de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 4 May 2023 14:58:42 +0000 Subject: [PATCH] fix(editor): Show the correct actions count in the nodes list (#6183) Fixes N8N-6402 --- .../Node/NodeCreator/Renderers/CategorizedItemsRenderer.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/Node/NodeCreator/Renderers/CategorizedItemsRenderer.vue b/packages/editor-ui/src/components/Node/NodeCreator/Renderers/CategorizedItemsRenderer.vue index a49d415159..9c418c25c5 100644 --- a/packages/editor-ui/src/components/Node/NodeCreator/Renderers/CategorizedItemsRenderer.vue +++ b/packages/editor-ui/src/components/Node/NodeCreator/Renderers/CategorizedItemsRenderer.vue @@ -30,6 +30,7 @@ const { registerKeyHook } = useKeyboardNavigation(); const { workflowId } = useWorkflowsStore(); const activeItemId = computed(() => useKeyboardNavigation()?.activeItemId); +const actionCount = computed(() => props.elements.filter(({ type }) => type === 'action').length); const expanded = ref(props.expanded ?? false); function toggleExpanded() { @@ -94,7 +95,7 @@ registerKeyHook(`CategoryLeft_${props.category}`, { :name="category" :disabled="disabled" :active="activeItemId === category" - :count="elements.length" + :count="actionCount" :expanded="expanded" :isTrigger="isTriggerCategory" data-keyboard-nav-type="category" @@ -110,7 +111,7 @@ registerKeyHook(`CategoryLeft_${props.category}`, { -
+