mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Fix insights loading on FE (#16677)
This commit is contained in:
@@ -8,6 +8,7 @@ import { routesForSSO } from './sso';
|
||||
import { routesForSourceControl } from './sourceControl';
|
||||
import { routesForWorkflows } from './workflow';
|
||||
import { routesForTags } from './tag';
|
||||
import { routesForModuleSettings } from './module';
|
||||
|
||||
const endpoints: Array<(server: Server) => void> = [
|
||||
routesForCredentials,
|
||||
@@ -19,6 +20,7 @@ const endpoints: Array<(server: Server) => void> = [
|
||||
routesForSourceControl,
|
||||
routesForWorkflows,
|
||||
routesForTags,
|
||||
routesForModuleSettings,
|
||||
];
|
||||
|
||||
export { endpoints };
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Server } from 'miragejs';
|
||||
|
||||
export function routesForModuleSettings(server: Server) {
|
||||
server.get('/rest/module-settings', () => {
|
||||
return {};
|
||||
});
|
||||
}
|
||||
@@ -270,6 +270,8 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
|
||||
await getSettings();
|
||||
|
||||
initialized.value = true;
|
||||
|
||||
await getModuleSettings();
|
||||
} catch (e) {
|
||||
showToast({
|
||||
title: i18n.baseText('startupError'),
|
||||
|
||||
Reference in New Issue
Block a user