Ft - Display section reset on clear button hit
This commit is contained in:
parent
49dddfb12b
commit
0b1c00baab
1 changed files with 19 additions and 4 deletions
|
|
@ -89,7 +89,10 @@ const PromptsTab = ({
|
|||
<ListPane
|
||||
items={prompts}
|
||||
listItems={listPrompts}
|
||||
clearItems={clearPrompts}
|
||||
clearItems={() => {
|
||||
clearPrompts();
|
||||
setSelectedPrompt(null);
|
||||
}}
|
||||
setSelectedItem={(prompt) => {
|
||||
setSelectedPrompt(prompt);
|
||||
setPromptArgs({});
|
||||
|
|
|
|||
Loading…
Reference in a new issue