Skip to content

Commit

Permalink
♻️ refactor: Return to chat view even when solution selection dropdow…
Browse files Browse the repository at this point in the history
…n is empty
  • Loading branch information
jolzee committed Jun 5, 2020
1 parent 2eac873 commit 1b3f3cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -942,10 +942,10 @@ export default {
});
},
closeConfigArea(skipRefreshDialog) {
if (this.selectedSolution === null) {
if (!this.selectedSolution) {
this.selectedSolution = this.$store.getters.activeSolution;
}
if (this.$store.getters.activeSolution) {
if (this.$store.getters.activeSolution && this.selectedSolution) {
const activeSolutionPast = this.$store.getters.activeSolution;
const activeSolutionCurrent = this.config.solutions.find(
solution => solution.id === activeSolutionPast.id
Expand Down

0 comments on commit 1b3f3cd

Please sign in to comment.