Explorar o código

fix: update view catalogue

hi-cactus! %!s(int64=3) %!d(string=hai) anos
pai
achega
38a2c44aba
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/containers/DataManagerView/index.tsx

+ 3 - 2
app/containers/DataManagerView/index.tsx

@@ -431,8 +431,9 @@ export class ViewList extends React.PureComponent<
       // const api = this.state.catalogueFromView ? api.updateCatalogue : api.createCatalogue
       if (catalogueFromView) {
         await request(api.updateCatalogue + `/${catalogueFromView.id}`, {
-          method: 'PUT'
-        })
+          method: 'PUT',
+          data: { ...catalogue, parentId, projectId }
+      })
       } else {
         await request(api.createCatalogue, {
           method: 'post',