Skip to content

Commit

Permalink
fix(routes): datadog errors [khcp-10204] (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiarrowood authored Jan 3, 2024
1 parent 433b016 commit 728991c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ const handleAddRoutingRuleEntity = (entity: string): void => {
// display or hide routing rules selector
const displayRoutingRulesSelector = computed(() => {
return routingRulesPerProtocolMap[form.fields.protocols].filter(protocol => !form.fields[protocol as RoutingRuleEntity])
return routingRulesPerProtocolMap[form.fields.protocols]?.filter(protocol => !form.fields[protocol as RoutingRuleEntity])
})
// removes rule entity from the form
Expand Down Expand Up @@ -720,7 +720,7 @@ const sanitizeRoutingRulesEntities = () => {
const routingRulesEntities = Object.keys(form.fields).filter(element => allRoutingRulesEntities.includes(element))
routingRulesEntities.forEach(entity => {
if (!protocolEntities.includes(entity)) {
if (!protocolEntities?.includes(entity)) {
handleRemoveRoutingRuleEntity(entity)
}
})
Expand Down

0 comments on commit 728991c

Please sign in to comment.