Explorar el Código

fix bug for pagination undhisplayed

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

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

@@ -63,6 +63,9 @@ class PageAttachment extends React.Component {
 
   async componentDidMount() {
     await this.handlePage(1);
+    this.setState({
+      activePage: 1,
+    });
   }
 
   checkIfFileInUse(attachment) {