Skip to content

Commit 5292538

Browse files
authored
fix: chat mode has been minimized (#968)
1 parent bab98d4 commit 5292538

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/components/Search/InputBox.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,7 @@ export default function ChatInput({
127127
const handleSubmit = useCallback(() => {
128128
const trimmedValue = inputValue.trim();
129129

130-
// console.log("handleSubmit", trimmedValue, disabled);
131-
132130
if ((trimmedValue || !isEmpty(uploadAttachments)) && !disabled) {
133-
const { setHasActiveChat } = useChatStore.getState();
134-
135-
if (isChatMode) {
136-
setHasActiveChat(true);
137-
}
138-
139131
changeInput("");
140132
onSend({
141133
message: trimmedValue,

src/components/SearchChat/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ function SearchChat({
213213

214214
dispatch({ type: "SET_INPUT", payload: params?.message ?? "" });
215215
if (isChatMode) {
216+
const { setHasActiveChat } = useChatStore.getState();
217+
setHasActiveChat(true);
216218
chatAIRef.current?.init(params);
217219
}
218220
},

0 commit comments

Comments
 (0)