fix: allow query submission abort (#392)
This commit is contained in:
parent
0ffd7c06d7
commit
a7c8c4c2fa
1 changed files with 1 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ export const useGeminiStream = (
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
turnCancelledRef.current = true;
|
turnCancelledRef.current = true;
|
||||||
|
isSubmittingQueryRef.current = false;
|
||||||
abortControllerRef.current?.abort();
|
abortControllerRef.current?.abort();
|
||||||
if (pendingHistoryItemRef.current) {
|
if (pendingHistoryItemRef.current) {
|
||||||
addItem(pendingHistoryItemRef.current, Date.now());
|
addItem(pendingHistoryItemRef.current, Date.now());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue