mirror of
https://github.com/usememos/memos.git
synced 2024-12-01 06:34:35 +03:00
fix: fix order in resource dialog (#733)
This commit is contained in:
parent
91220ea4a6
commit
c4278ef55a
@ -34,7 +34,7 @@ const resourceService = {
|
||||
const { data } = (await api.uploadFile(formData)).data;
|
||||
const resource = convertResponseModelResource(data);
|
||||
const resourceList = resourceService.getState().resources;
|
||||
store.dispatch(setResources(resourceList.concat(resource)));
|
||||
store.dispatch(setResources([resource, ...resourceList]));
|
||||
return resource;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user