From 32247c588a474e121dbd449ee7db99374ac51b37 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 16 Feb 2024 19:08:03 +0530 Subject: [PATCH] ImprovedL: handling for routingRules when fetching a new rule information(#106) --- src/views/BrokeringQuery.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index 6073276..93eaf6f 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -426,7 +426,7 @@ async function fetchRuleInformation(routingRuleId: string) { selectedRoutingRule.value = inventoryRules.value.find((rule: Rule) => rule.routingRuleId === routingRuleId) // If failed to fetch the current routing rule information - if(!selectedRoutingRule.value || !rulesInformation.value[routingRuleId]) { + if(!selectedRoutingRule.value || !rulesInformation.value[routingRuleId]?.routingRuleId) { selectedRoutingRule.value = {} }