Skip to content

Commit a3ba1c9

Browse files
authored
fix: don't clear changedPrompt #1419 (#1433)
1 parent 6d46a4f commit a3ba1c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webapp/features/Threads/Prompt/PromptContext.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,14 @@ function PromptProvider({
215215
const handleUpdatePrompt = useCallback(
216216
async (prompt: ParsedPrompt | undefined, conversationName = getDefaultConversationName(t)) => {
217217
if (prompt?.raw === '' && tempConversationId) {
218-
setChangedPrompt(undefined);
218+
// setChangedPrompt(undefined);
219219
await updateConversations(conversations.filter((c) => !c.temp));
220220
onUpdateTempConversation(undefined);
221221
return;
222222
}
223223
const conversation = getConversation(conversationId, conversations) as Conversation;
224224
if (conversation && comparePrompts(conversation.currentPrompt, prompt)) {
225-
setChangedPrompt(undefined);
225+
// setChangedPrompt(undefined);
226226
return;
227227
}
228228
let updatedConversations: Conversation[] | undefined;
@@ -252,7 +252,7 @@ function PromptProvider({
252252
if (updatedConversations) {
253253
await updateConversations(updatedConversations);
254254
}
255-
setChangedPrompt(undefined);
255+
// setChangedPrompt(undefined);
256256
},
257257
[
258258
t,

0 commit comments

Comments
 (0)