mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(editor): Make the frontend work again when NODE_FUNCTION_ALLOW_EXTERNAL
is set (no-changelog) (#6058)
This commit is contained in:
parent
70aaf24784
commit
6335e0938d
|
@ -16,6 +16,7 @@ if (inE2ETests) {
|
||||||
N8N_PUBLIC_API_DISABLED: 'true',
|
N8N_PUBLIC_API_DISABLED: 'true',
|
||||||
EXTERNAL_FRONTEND_HOOKS_URLS: '',
|
EXTERNAL_FRONTEND_HOOKS_URLS: '',
|
||||||
N8N_PERSONALIZATION_ENABLED: 'false',
|
N8N_PERSONALIZATION_ENABLED: 'false',
|
||||||
|
NODE_FUNCTION_ALLOW_EXTERNAL: 'node-fetch',
|
||||||
};
|
};
|
||||||
} else if (inTest) {
|
} else if (inTest) {
|
||||||
process.env.N8N_PUBLIC_API_DISABLED = 'true';
|
process.env.N8N_PUBLIC_API_DISABLED = 'true';
|
||||||
|
|
|
@ -235,11 +235,8 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
|
||||||
setPromptsData(promptsData: IN8nPrompts): void {
|
setPromptsData(promptsData: IN8nPrompts): void {
|
||||||
Vue.set(this, 'promptsData', promptsData);
|
Vue.set(this, 'promptsData', promptsData);
|
||||||
},
|
},
|
||||||
setAllowedModules(allowedModules: { builtIn?: string; external?: string }): void {
|
setAllowedModules(allowedModules: { builtIn?: string[]; external?: string[] }): void {
|
||||||
this.settings.allowedModules = {
|
this.settings.allowedModules = allowedModules;
|
||||||
...(allowedModules.builtIn && { builtIn: allowedModules.builtIn.split(',') }),
|
|
||||||
...(allowedModules.external && { external: allowedModules.external.split(',') }),
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
async fetchPromptsData(): Promise<void> {
|
async fetchPromptsData(): Promise<void> {
|
||||||
if (!this.isTelemetryEnabled) {
|
if (!this.isTelemetryEnabled) {
|
||||||
|
|
Loading…
Reference in a new issue