Skip to content

Commit ab9f108

Browse files
committed
fix prompt selection
1 parent c7be455 commit ab9f108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Chat/ChatInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const ChatInput = ({
4343
onScrollDownClick,
4444
stopConversationRef,
4545
textareaRef,
46-
showScrollDownButton
46+
showScrollDownButton,
4747
}: Props) => {
4848
const { t } = useTranslation('chat');
4949

@@ -371,7 +371,7 @@ export const ChatInput = ({
371371

372372
{isModalVisible && (
373373
<VariableModal
374-
prompt={prompts[activePromptIndex]}
374+
prompt={filteredPrompts[activePromptIndex]}
375375
variables={variables}
376376
onSubmit={handleSubmit}
377377
onClose={() => setIsModalVisible(false)}

0 commit comments

Comments
 (0)