diff --git a/src/store/modules/orderRouting/actions.ts b/src/store/modules/orderRouting/actions.ts index 67f6f17..96a8a51 100644 --- a/src/store/modules/orderRouting/actions.ts +++ b/src/store/modules/orderRouting/actions.ts @@ -164,13 +164,14 @@ const actions: ActionTree = { }, async fetchCurrentOrderRouting({ dispatch }, orderRoutingId) { - let currentRoute = {} + let currentRoute = {} as any try { const resp = await OrderRoutingService.fetchOrderRouting(orderRoutingId); if(!hasError(resp) && resp.data) { currentRoute = resp.data + currentRoute["rules"] = currentRoute["rules"]?.length ? sortSequence(currentRoute["rules"]) : [] } else { throw resp.data }