Explorar o código

add limit || 10 in PageAttachment.jsx

zahmis %!s(int64=5) %!d(string=hai) anos
pai
achega
fbd38b6c95
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/client/js/components/PageAttachment.jsx

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

@@ -18,7 +18,7 @@ class PageAttachment extends React.Component {
     const { appContainer } = this.props;
     this.state = {
       activePage: 1,
-      limit: appContainer.getConfig().pageLimitationS,
+      limit: appContainer.getConfig().pageLimitationS || 10,
       totalAttachments: 0,
       attachments: [],
       inUse: {},
@@ -150,6 +150,8 @@ class PageAttachment extends React.Component {
       );
     }
 
+    console.log(this.state.limit);
+
     return (
       <>
         <PageAttachmentList