Unverified Commit c4278ef5 authored by Zeng1998's avatar Zeng1998 Committed by GitHub

fix: fix order in resource dialog (#733)

parent 91220ea4
......@@ -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;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment