mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 19:43:32 +00:00
fix(frontend): このファイルをドライブに保存する が正常に機能しない問題を修正 (MisskeyIO#712)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user