Skip to content

Commit

Permalink
fix(ui): sort filtered nodes by name
Browse files Browse the repository at this point in the history
Fixes #4114
  • Loading branch information
robertsLando committed Feb 3, 2025
1 parent 46a9eda commit ca07b5d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/dialogs/DialogAssociation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,13 @@ export default {
filteredNodes() {
return this.node.protocol === Protocols.ZWaveLongRange
? [this.controllerNode]
: this.nodes.filter(
(n) =>
n.id !== this.node.id &&
n.protocol !== Protocols.ZWaveLongRange,
)
: this.nodes
.filter(
(n) =>
n.id !== this.node.id &&
n.protocol !== Protocols.ZWaveLongRange,
)
.sort((a, b) => a._name.localeCompare(b._name))
},
endpoints() {
return this.getEndpointItems(this.node)
Expand Down

0 comments on commit ca07b5d

Please sign in to comment.