1
0

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

This commit is contained in:
Zef Hemel 2022-10-29 09:27:18 +02:00
parent bef2c4c62b
commit b6050fea3b

View File

@ -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,
});