yuto-o 4 лет назад
Родитель
Сommit
58fef672ba

+ 0 - 1
packages/app/src/components/Sidebar.jsx

@@ -162,7 +162,6 @@ class Sidebar extends React.Component {
           <div id="grw-sidebar-content-container">
             <SidebarContents
               isSharedUser={this.props.appContainer.isSharedUser}
-              navigationContainer={this.props.navigationContainer}
             />
           </div>
         </div>

+ 9 - 1
packages/app/src/components/TagsList.jsx

@@ -6,6 +6,7 @@ import { withTranslation } from 'react-i18next';
 import PaginationWrapper from './PaginationWrapper';
 import TagCloudBox from './TagCloudBox';
 import { apiGet } from '../client/util/apiv1-client';
+import { toastError } from '../client/util/apiNotification';
 
 class TagsList extends React.Component {
 
@@ -40,7 +41,14 @@ class TagsList extends React.Component {
   async getTagList(selectPageNumber) {
     const limit = this.state.pagingLimit;
     const offset = (selectPageNumber - 1) * limit;
-    const res = await apiGet('/tags.list', { limit, offset });
+    let res;
+
+    try {
+      res = await apiGet('/tags.list', { limit, offset });
+    }
+    catch (error) {
+      toastError(error);
+    }
 
     const totalTags = res.totalCount;
     const tagData = res.data;