refactor(editor): Filter out native Python runner action from nodes panel (#19141)

This commit is contained in:
Iván Ovejero
2025-09-03 14:41:10 +02:00
committed by GitHub
parent f7479bb2e5
commit a9a1c23a67

View File

@@ -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');
}
}
}