Răsfoiți Sursa

fix bug for pagination undhisplayed

zahmis 5 ani în urmă
părinte
comite
ef4c0698ba
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  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) {