fix: Properly structure Google Drive file upload data for dispatch

This commit is contained in:
Taylor Wilsdon (aider) 2024-12-15 18:39:23 -05:00
parent 7d31b111cc
commit eef18d4440

View File

@ -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);