Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Hoffmann  ෴. <[email protected]>
  • Loading branch information
bastianallgeier and distantnative authored Dec 10, 2024
1 parent bbc7423 commit 1462755
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions panel/src/components/Sections/ModelsSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,11 @@ export default {
}
},
onSelectToggle() {
this.isSelecting = !this.isSelecting;
// start new selection with a fresh list
if (this.isSelecting) {
this.selected = [];
this.isSelecting = false;
} else {
this.isSelecting = true;
}
},
onSort() {},
Expand Down

0 comments on commit 1462755

Please sign in to comment.