瀏覽代碼

fix: update view catalogue

hi-cactus! 3 年之前
父節點
當前提交
38a2c44aba
共有 1 個文件被更改,包括 3 次插入2 次删除
  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',