| ... | ... | @@ -2034,6 +2034,14 @@ export default function ChatView({ threadId }: ChatViewProps) { |
| 2034 | 2034 | const addComposerImages = (files: File[]) => { |
| 2035 | 2035 | if (!activeThreadId || files.length === 0) return; |
| 2036 | 2036 | |
| 2037 | if (pendingUserInputs.length > 0) { |
| 2038 | toastManager.add({ |
| 2039 | type: "error", |
| 2040 | title: "Attach images after answering plan questions.", |
| 2041 | }); |
| 2042 | return; |
| 2043 | } |
| 2044 | |
| 2037 | 2045 | const nextImages: ComposerImageAttachment[] = []; |
| 2038 | 2046 | let nextImageCount = composerImagesRef.current.length; |
| 2039 | 2047 | let error: string | null = null; |