fix(frontend): このファイルをドライブに保存する が正常に機能しない問題を修正 (MisskeyIO#712)
This commit is contained in:
parent
a57b5e1426
commit
4e3d8246fc
@ -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,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user