Skip to content

Commit

Permalink
fix: fix condition in restartServiceNameExists check (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Jul 1, 2023
1 parent 21d3d39 commit a7e70c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TheEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default class TheEditor extends Mixins(BaseMixin) {
}
get restartServiceNameExists() {
if (this.restartServiceName) return true
if (!this.restartServiceName) return true
return this.availableServices.includes(this.restartServiceName)
}
Expand Down

0 comments on commit a7e70c7

Please sign in to comment.