fix(frontend): このファイルをドライブに保存する が正常に機能しない問題を修正 (MisskeyIO#712)

This commit is contained in:
まっちゃてぃー。 2024-08-18 08:06:34 +09:00 committed by GitHub
parent a57b5e1426
commit 4e3d8246fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,12 +98,9 @@ function showMenu(ev: MouseEvent) {
icon: 'ti ti-cloud-upload', icon: 'ti ti-cloud-upload',
action: () => { action: () => {
os.selectDriveFolder(false).then(async folder => { os.selectDriveFolder(false).then(async folder => {
if (folder[0] == null) {
return;
}
misskeyApi('drive/files/upload-from-url', { misskeyApi('drive/files/upload-from-url', {
url: props.image.url, url: props.image.url,
folderId: folder ? folder[0].id : undefined, folderId: folder[0]?.id,
}); });
}); });
}, },