Sfoglia il codice sorgente

fix bug for pagination undhisplayed

zahmis 5 anni fa
parent
commit
ef4c0698ba
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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) {