zahmis 5 лет назад
Родитель
Сommit
82a6ac830d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/client/js/components/PageAttachment.jsx

+ 2 - 2
src/client/js/components/PageAttachment.jsx

@@ -25,14 +25,14 @@ class PageAttachment extends React.Component {
     this.onAttachmentDeleteClickedConfirm = this.onAttachmentDeleteClickedConfirm.bind(this);
   }
 
-  componentDidMount() {
+  async componentDidMount() {
     const { pageId } = this.props.pageContainer.state;
 
     if (!pageId) {
       return;
     }
 
-    this.props.appContainer.apiv3Get('/attachments/list', { pageId })
+    await this.props.appContainer.apiv3Get('/attachments/list', { pageId })
       .then((res) => {
         const attachments = res.data.attachments;
         const inUse = {};