소스 검색

fix: Properly structure Google Drive file upload data for dispatch

Taylor Wilsdon (aider) 5 달 전
부모
커밋
eef18d4440
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      src/lib/components/chat/MessageInput.svelte

+ 8 - 1
src/lib/components/chat/MessageInput.svelte

@@ -501,7 +501,14 @@
 											try {
 												const fileData = await createPicker();
 												if (fileData) {
-													dispatch('upload', { type: 'google-drive', data: fileData });
+													dispatch('upload', { 
+														type: 'google-drive', 
+														data: {
+															name: fileData.name,
+															url: fileData.url,
+															id: fileData.id
+														}
+													});
 												}
 											} catch (error) {
 												console.error('Google Drive Error:', error);