From a9a1c23a67b46c2ec239b0740c30ae7ac449fd30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 3 Sep 2025 14:41:10 +0200 Subject: [PATCH] refactor(editor): Filter out native Python runner action from nodes panel (#19141) --- .../Node/NodeCreator/composables/useActionsGeneration.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useActionsGeneration.ts b/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useActionsGeneration.ts index 19ced16919..a6db5ced5d 100644 --- a/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useActionsGeneration.ts +++ b/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useActionsGeneration.ts @@ -21,6 +21,7 @@ import { i18n } from '@n8n/i18n'; import { getCredentialOnlyNodeType } from '@/utils/credentialOnlyNodes'; import { formatTriggerActionName } from '../utils'; import { useEvaluationStore } from '@/stores/evaluation.store.ee'; +import { useSettingsStore } from '@/stores/settings.store'; const PLACEHOLDER_RECOMMENDED_ACTION_KEY = 'placeholder_recommended'; @@ -109,7 +110,12 @@ function operationsCategory(nodeTypeDescription: INodeTypeDescription): ActionTy languageProperty, nodeTypeDescription, ); - if (customParsedItems) return customParsedItems; + if (customParsedItems) { + // temporary filter until native Python runner is GA + return useSettingsStore().isNativePythonRunnerEnabled + ? customParsedItems + : customParsedItems.filter((item) => item.actionKey !== 'language_pythonNative'); + } } }