Explorar el Código

delete comment out

zahmis hace 5 años
padre
commit
68a9941490
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      src/client/js/components/PageAttachment.jsx

+ 1 - 4
src/client/js/components/PageAttachment.jsx

@@ -34,14 +34,11 @@ class PageAttachment extends React.Component {
 
 
   async handlePage(selectedPage) {
   async handlePage(selectedPage) {
     const { pageId } = this.props.pageContainer.state;
     const { pageId } = this.props.pageContainer.state;
-    // const offset = (selectedPage - 1) * limit;
     const activePage = selectedPage;
     const activePage = selectedPage;
 
 
     if (!pageId) { return }
     if (!pageId) { return }
 
 
-    const res = await this.props.appContainer.apiv3Get('/attachment/list', {
-      pageId, /* limit, offset, */
-    });
+    const res = await this.props.appContainer.apiv3Get('/attachment/list', { pageId });
     const attachments = res.data.paginateResult.docs;
     const attachments = res.data.paginateResult.docs;
     const totalAttachments = res.data.paginateResult.totalDocs;
     const totalAttachments = res.data.paginateResult.totalDocs;
     const pagingLimit = res.data.paginateResult.limit;
     const pagingLimit = res.data.paginateResult.limit;