Skip to content

Commit

Permalink
fix: ChatGPTNextWeb#2221 user prompts in front of all prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Jul 3, 2023
1 parent 0bc2c71 commit 5963459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const usePromptStore = create<PromptStore>()(
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[];
},
Expand Down

0 comments on commit 5963459

Please sign in to comment.