fix: #613 show all prompts when input /

This commit is contained in:
Yidadaa
2023-04-08 02:53:35 +08:00
parent 13035ecb0d
commit 637cda5b4c
4 changed files with 18 additions and 9 deletions

View File

@@ -417,9 +417,6 @@ export function Chat(props: {
// check if need to trigger auto completion
if (text.startsWith("/")) {
let searchText = text.slice(1);
if (searchText.length === 0) {
searchText = " ";
}
onSearch(searchText);
}
}