Skip to content

Commit

Permalink
ImprovedL: handling for routingRules when fetching a new rule informa…
Browse files Browse the repository at this point in the history
…tion(#106)
  • Loading branch information
ymaheshwari1 committed Feb 16, 2024
1 parent 8b48f07 commit 32247c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/BrokeringQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
}
Expand Down

0 comments on commit 32247c5

Please sign in to comment.