mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-04 21:29:12 +00:00
Separate the shorthand of each suggestion card from the prefilled text
This commit is contained in:
@@ -204,13 +204,7 @@ function ChatBodyData(props: ChatBodyDataProps) {
|
||||
}, []);
|
||||
|
||||
function clickStepOneSuggestion(suggestion: StepOneSuggestion) {
|
||||
let message_str = "";
|
||||
let prompt =
|
||||
suggestion.actionTagline.charAt(0).toLowerCase() + suggestion.actionTagline.slice(1);
|
||||
|
||||
message_str = prompt;
|
||||
|
||||
setPrefilledMessage(message_str);
|
||||
setPrefilledMessage(suggestion.intent);
|
||||
const stepTwoSuggestions = getStepTwoSuggestions(suggestion.type);
|
||||
setSelectedStepOneSuggestion(suggestion);
|
||||
setStepTwoSuggestionOptions(stepTwoSuggestions);
|
||||
|
||||
Reference in New Issue
Block a user