Skip to content
This repository has been archived by the owner on Feb 28, 2025. It is now read-only.

Commit

Permalink
fix: broken revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Dec 6, 2024
1 parent 66ff1b7 commit a6a29a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ChatContent/ToolsContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const MultiModalToolContent: React.FC<{
return (
<Container>
<Collapsible.Root open={open} onOpenChange={setOpen}>
<Collapsible.Trigger>
<Collapsible.Trigger asChild>
<ToolUsageSummary
toolUsageAmount={toolUsageAmount}
open={open}
Expand Down
3 changes: 0 additions & 3 deletions src/components/ChatForm/ChatForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ export const ChatForm: React.FC<ChatFormProps> = ({
const { processAndInsertImages } = useAttachedImages();
const handlePastingFile = useCallback(
(event: React.ClipboardEvent<HTMLTextAreaElement>) => {
console.log("handlePasting");
console.log(event);
const files: File[] = [];
const items = event.clipboardData.items;
for (const item of items) {
Expand All @@ -86,7 +84,6 @@ export const ChatForm: React.FC<ChatFormProps> = ({
file && files.push(file);
}
}
console.log({ files });
if (files.length > 0) {
event.preventDefault();
processAndInsertImages(files);
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useAttachedImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ async function processImages(
content: scaledImage,
type: file.type,
};
console.log({ fileForChat });
onSuccess(fileForChat);
} catch (error) {
if (error === "abort") {
Expand Down

0 comments on commit a6a29a6

Please sign in to comment.