From 68d9abe596b72ae3758c2ba1cc82925a4e435b28 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Wed, 3 Apr 2024 15:31:00 +0530 Subject: [PATCH] Removed: unused parameter passed to the action call(#146) --- src/views/BrokeringQuery.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index 161dfdc..a86123e 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -330,7 +330,7 @@ onBeforeRouteLeave(async (to) => { if(!hasUnsavedChanges.value) { // clearning the selected ruleId whenever user tries to leave the page, we need to clear this id, as if user opens some other routing then the id will not be found which will result in an empty state scenario store.dispatch("orderRouting/updateRoutingRuleId", "") - store.dispatch("orderRouting/clearRules", "") + store.dispatch("orderRouting/clearRules") return; } @@ -349,7 +349,7 @@ onBeforeRouteLeave(async (to) => { handler: () => { // clearning the selected ruleId whenever user leaves the page, we need to clear this id, as if user opens some other routing then the id will not be found which will result in an empty state scenario store.dispatch("orderRouting/updateRoutingRuleId", "") - store.dispatch("orderRouting/clearRules", "") + store.dispatch("orderRouting/clearRules") canLeave = true; }, },