mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
[editor] Fix: Allow empty description in sorting / filter
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
86144f8783
commit
967e301390
1 changed files with 2 additions and 2 deletions
|
@ -615,8 +615,8 @@ export default {
|
|||
|
||||
filteredRules() {
|
||||
const rules = [...this.rules]
|
||||
.filter(rule => !this.filter || rule.description.toLocaleLowerCase().includes(this.filter.toLocaleLowerCase()))
|
||||
rules.sort((a, b) => a.description.toLocaleLowerCase().localeCompare(b.description.toLocaleLowerCase()))
|
||||
.filter(rule => !this.filter || rule.description?.toLocaleLowerCase().includes(this.filter?.toLocaleLowerCase()))
|
||||
rules.sort((a, b) => a.description?.toLocaleLowerCase().localeCompare(b.description?.toLocaleLowerCase()))
|
||||
return rules
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue