From 59634594994bfc00facf4ea7b6160a4e2ed1f49e Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Tue, 4 Jul 2023 00:22:30 +0800 Subject: [PATCH] fix: #2221 user prompts in front of all prompts --- app/store/prompt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/prompt.ts b/app/store/prompt.ts index 98d4193b..4e370161 100644 --- a/app/store/prompt.ts +++ b/app/store/prompt.ts @@ -127,7 +127,7 @@ export const usePromptStore = create()( search(text) { if (text.length === 0) { // return all rompts - return SearchService.allPrompts.concat([...get().getUserPrompts()]); + return get().getUserPrompts().concat(SearchService.builtinPrompts); } return SearchService.search(text) as Prompt[]; },