mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(editor): Filter out native Python runner action from nodes panel (#19141)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user