Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Chat/ChatInput/ChatInputMessage.tsx
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ export const ChatInputMessage = ({
const { t } = useTranslation('chat');
const dispatch = useAppDispatch();

const [content, setContent] = useState<string>();
const [content, setContent] = useState<string>('');
const [isTyping, setIsTyping] = useState<boolean>(false);
const [showPromptList, setShowPromptList] = useState(false);
const [activePromptIndex, setActivePromptIndex] = useState(0);
@@ -163,7 +163,7 @@ export const ChatInputMessage = ({

onSend({
role: Role.User,
content: content!,
content,
...getUserCustomContent(selectedFiles),
});
dispatch(FilesActions.resetSelectedFiles());

0 comments on commit f201bfb

Please sign in to comment.