mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: upload resouces double time (#204)
This commit is contained in:
@ -70,7 +70,6 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
for (const file of inputEl.files) {
|
for (const file of inputEl.files) {
|
||||||
await resourceService.upload(file);
|
|
||||||
try {
|
try {
|
||||||
await resourceService.upload(file);
|
await resourceService.upload(file);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
Reference in New Issue
Block a user