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

This commit is contained in:
まっちゃてぃー。
2024-08-18 08:06:34 +09:00
committed by GitHub
parent a57b5e1426
commit 4e3d8246fc

View File

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