Always make "Create" option appear as second item in filter list
This commit is contained in:
parent
bef2c4c62b
commit
b6050fea3b
@ -86,7 +86,7 @@ export function FilterList({
|
||||
const foundExactMatch = false;
|
||||
const results = fuzzySorter(originalPhrase, options);
|
||||
if (allowNew && !foundExactMatch && originalPhrase) {
|
||||
results.push({
|
||||
results.splice(1, 0, {
|
||||
name: originalPhrase,
|
||||
hint: newHint,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user