Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Precious-Macaulay authored Nov 11, 2024
1 parent aecf91d commit ed1ca37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useImageUpload.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useDropzone } from 'react-dropzone';
import { useEffect, useState } from 'react';
import { useState } from 'react';

interface UseImageUploadProps {
initialImage?: File | null;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePaste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const usePaste = (callback: (pasteText: string, prompt: Record<string, any>, eve
const remainingParts: string[] = [];

text.split(' ').forEach(part => {
const [key, value] = part.split('=');
const [key] = part.split('=');
if (!allowedKeys.has(key)) {
remainingParts.push(part); // If the key isn't in the allowed list, it's part of the remaining prompt text
}
Expand Down

0 comments on commit ed1ca37

Please sign in to comment.