Parcourir la source

delete comment out

zahmis il y a 5 ans
Parent
commit
68a9941490
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  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) {
     const { pageId } = this.props.pageContainer.state;
-    // const offset = (selectedPage - 1) * limit;
     const activePage = selectedPage;
 
     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 totalAttachments = res.data.paginateResult.totalDocs;
     const pagingLimit = res.data.paginateResult.limit;