fix(editor): Fix insights loading on FE (#16677)

This commit is contained in:
Iván Ovejero
2025-06-24 18:44:22 +02:00
committed by GitHub
parent e89487f602
commit 28aabd4044
3 changed files with 11 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,7 @@
import type { Server } from 'miragejs';
export function routesForModuleSettings(server: Server) {
server.get('/rest/module-settings', () => {
return {};
});
}

View File

@@ -270,6 +270,8 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
await getSettings();
initialized.value = true;
await getModuleSettings();
} catch (e) {
showToast({
title: i18n.baseText('startupError'),