From b6050fea3ba60ccb00b025cd73c3674aa64bc5cd Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 29 Oct 2022 09:27:18 +0200 Subject: [PATCH] Always make "Create" option appear as second item in filter list --- web/components/filter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/filter.tsx b/web/components/filter.tsx index 86d420c2..73a03d87 100644 --- a/web/components/filter.tsx +++ b/web/components/filter.tsx @@ -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, });