Skip to content

Commit

Permalink
fix: use id of addr option correctly when mapping dest addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincela committed Apr 8, 2024
1 parent 461e811 commit fce915f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function mapDestinationAddressesToUi(rule: FirewallRule) {
for (const destIp of rule.dest_ip) {
const destAddr = destIp as RuleHost
const addrFound = addressOptions.value.find((addr: NeComboboxOption) => {
return addr.value === `${destAddr.value} ${destAddr.label} (${destAddr.type})`
return addr.id === `${destAddr.value} ${destAddr.label} (${destAddr.type})`
})

if (addrFound) {
Expand Down

0 comments on commit fce915f

Please sign in to comment.