1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 14:46:40 +09:00

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',
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,
});
});
},