Skip to content

Commit

Permalink
compare intreface directly
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Sep 3, 2020
1 parent 55addbd commit 6691a12
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,7 @@ export const NICModal = withHandlePromise((props: NICModalProps) => {
>
<FormSelectPlaceholderOption isDisabled placeholder="--- Select Model ---" />
{NetworkInterfaceModel.getAll()
.filter(
(ifaceModel) =>
ifaceModel.isSupported() || ifaceModel.toString() === model.toString(),
)
.filter((ifaceModel) => ifaceModel.isSupported() || ifaceModel === model)
.map((ifaceModel) => {
return (
<FormSelectOption
Expand Down

0 comments on commit 6691a12

Please sign in to comment.