@agents24/chat-react 0.5.24 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scaffold/index.cjs +1 -1
- package/dist/scaffold/index.cjs.map +1 -1
- package/dist/scaffold/index.js +1 -1
- package/dist/scaffold/index.js.map +1 -1
- package/dist/ui/index.cjs +3 -3
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +3 -3
- package/dist/ui/index.js.map +1 -1
- package/package.json +2 -2
- package/scaffold/src/components/chat/chat-composer.tsx +1 -1
package/dist/scaffold/index.js
CHANGED
|
@@ -581,7 +581,7 @@ function ChatComposer({
|
|
|
581
581
|
const hasContextWindow = Number.isFinite(Number(contextWindow?.max_tokens)) && Number(contextWindow?.max_tokens) > 0;
|
|
582
582
|
const showUtilityRow = utilityRow === "below";
|
|
583
583
|
const submit = async () => {
|
|
584
|
-
if (disabled || submittingRef.current || validationError) return;
|
|
584
|
+
if (disabled || isCancelling || submittingRef.current || validationError) return;
|
|
585
585
|
const value = text;
|
|
586
586
|
const selectedFiles = files;
|
|
587
587
|
const clearedRevision = draftRevisionRef.current + 1;
|