Skip to content

Commit

Permalink
Fixed an issue that was causing exit from network tab after add-network
Browse files Browse the repository at this point in the history
  • Loading branch information
abh1sar committed Sep 19, 2024
1 parent 7a9713f commit 02be6a2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ui/src/views/network/NicsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,13 @@ export default {
this.setAsDefault(this.nic)
} else {
this.$notifyError('NIC data not found.')
this.loadingNic = false
this.closeModals()
}
} catch (error) {
this.$notifyError('Failed to fetch NIC data.')
this.loadingNic = false
this.closeModals()
}
} else {
this.loadingNic = false
this.closeModals()
}
this.loadingNic = false
this.closeModals()
},
errorMessage: this.$t('message.add.network.failed'),
errorMethod: () => {
Expand Down

0 comments on commit 02be6a2

Please sign in to comment.