diff --git a/src-electron/rest/endpoint.js b/src-electron/rest/endpoint.js index 577451fe22..c65e10a4d6 100644 --- a/src-electron/rest/endpoint.js +++ b/src-electron/rest/endpoint.js @@ -256,7 +256,7 @@ function httpPatchEndpointType(db) { } exports.get = [ { - uri: restApi.uri.loadComposition, + uri: restApi.uri.loadInitialComposition, callback: httpGetInitialComposition } ] diff --git a/src-shared/rest-api.js b/src-shared/rest-api.js index ed76449be4..32affc458f 100644 --- a/src-shared/rest-api.js +++ b/src-shared/rest-api.js @@ -80,7 +80,7 @@ const uri = { reloadSession: '/zcl/reloadSession', init: '/init', forcedExternal: '/zcl/forcedExternal', - loadComposition: '/zcl/loadComposition' + loadInitialComposition: '/zcl/loadInitialComposition' } const uiMode = { diff --git a/src/App.vue b/src/App.vue index 26ccf446d0..42c3d78543 100644 --- a/src/App.vue +++ b/src/App.vue @@ -231,7 +231,7 @@ export default defineComponent({ this.$store.commit('zap/toggleShowExceptionIcon', false) }, async loadInitialEndpoints() { - let endpoint = await this.$store.dispatch('zap/loadComposition') + let endpoint = await this.$store.dispatch('zap/loadInitialComposition') if (endpoint) { this.$store.dispatch('zap/updateSelectedEndpointType', { endpointType: this.endpointType[endpoint.id], diff --git a/src/store/zap/actions.js b/src/store/zap/actions.js index 4c030b8d6f..39fcc18905 100644 --- a/src/store/zap/actions.js +++ b/src/store/zap/actions.js @@ -460,8 +460,8 @@ export function updateEndpoint(context, endpoint) { * @param {Object} context - The Vuex context object. * @returns {Promise} - A promise that resolves when the composition is loaded. */ -export async function loadComposition(context) { - let res = await axiosRequests.$serverGet(restApi.uri.loadComposition) +export async function loadInitialComposition(context) { + let res = await axiosRequests.$serverGet(restApi.uri.loadInitialComposition) // Check if the response data is empty or undefined if (!res.data) {