mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-14 16:40:05 +00:00
fix(core): Eugeny/tabby#8709 sort freeInputPattern by weight
This commit is contained in:
parent
4dedbbc25a
commit
d57757c66c
@ -76,7 +76,7 @@ export class SelectorModalComponent<T> {
|
||||
{ sort: true },
|
||||
).search(f)
|
||||
|
||||
this.options.filter(x => x.freeInputPattern).forEach(freeOption => {
|
||||
this.options.filter(x => x.freeInputPattern).sort(firstBy<SelectorOption<T>, number>(x => x.weight ?? 0)).forEach(freeOption => {
|
||||
if (!this.filteredOptions.includes(freeOption)) {
|
||||
this.filteredOptions.push(freeOption)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user