From 684d90f2bcdcb92405e5d6d3778704f74c9e017f Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Tue, 16 Jan 2024 10:21:31 +0530 Subject: [PATCH] Improved: action name(#17) --- src/store/modules/orderRouting/actions.ts | 2 +- src/views/BrokeringRuns.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/orderRouting/actions.ts b/src/store/modules/orderRouting/actions.ts index 605510d..de45084 100644 --- a/src/store/modules/orderRouting/actions.ts +++ b/src/store/modules/orderRouting/actions.ts @@ -30,7 +30,7 @@ const actions: ActionTree = { commit(types.ORDER_ROUTING_GROUPS_UPDATED, routingGroups) }, - async createBrokeringGroup({ dispatch }, groupName) { + async createRoutingGroup({ dispatch }, groupName) { const payload = { groupName, productStoreId: "STORE" diff --git a/src/views/BrokeringRuns.vue b/src/views/BrokeringRuns.vue index 46148cc..7b7ba0c 100644 --- a/src/views/BrokeringRuns.vue +++ b/src/views/BrokeringRuns.vue @@ -77,7 +77,7 @@ async function addNewRun() { newRunAlert.onDidDismiss().then((result: any) => { if(result.data?.values?.runName) { - store.dispatch('orderRouting/createBrokeringGroup', result.data.values.runName) + store.dispatch('orderRouting/createRoutingGroup', result.data.values.runName) } })