Skip to content

Commit

Permalink
Fixed: undefined error when same filter is not available as included/…
Browse files Browse the repository at this point in the history
…excluded(#269)
  • Loading branch information
ymaheshwari1 committed Nov 6, 2024
1 parent 4311c47 commit 89fb3a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/BrokeringQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -782,9 +782,9 @@ async function addInventoryRule() {
function isFacilityGroupSelected(facilityGroupId: string, type: string) {
if(type === "excluded") {
return facilityGroupId == getFilterValue(inventoryRuleFilterOptions.value, conditionFilterEnums, 'FACILITY_GROUP').fieldValue
return facilityGroupId == getFilterValue(inventoryRuleFilterOptions.value, conditionFilterEnums, 'FACILITY_GROUP')?.fieldValue
} else {
return facilityGroupId == getFilterValue(inventoryRuleFilterOptions.value, conditionFilterEnums, 'FACILITY_GROUP_EXCLUDED').fieldValue
return facilityGroupId == getFilterValue(inventoryRuleFilterOptions.value, conditionFilterEnums, 'FACILITY_GROUP_EXCLUDED')?.fieldValue
}
}
Expand Down

0 comments on commit 89fb3a9

Please sign in to comment.