Always make "Create" option appear as second item in filter list

pull/109/head
Zef Hemel 2022-10-29 09:27:18 +02:00
parent bef2c4c62b
commit b6050fea3b
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ export function FilterList({
const foundExactMatch = false; const foundExactMatch = false;
const results = fuzzySorter(originalPhrase, options); const results = fuzzySorter(originalPhrase, options);
if (allowNew && !foundExactMatch && originalPhrase) { if (allowNew && !foundExactMatch && originalPhrase) {
results.push({ results.splice(1, 0, {
name: originalPhrase, name: originalPhrase,
hint: newHint, hint: newHint,
}); });