mirror of
https://github.com/usememos/memos.git
synced 2025-11-12 10:21:53 +08:00
fix: upload resouces double time (#204)
This commit is contained in:
parent
f303dc21a0
commit
5eea1339c9
1 changed files with 0 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue