mirror of
https://github.com/wassname/talk.git
synced 2026-08-05 13:30:26 +08:00
Port plugins
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import Comment from '../containers/Comment';
|
||||
import LoadMore from './LoadMore';
|
||||
import { getErrorMessages } from 'plugin-api/beta/client/utils';
|
||||
|
||||
class TabPane extends React.Component {
|
||||
state = {
|
||||
@@ -15,9 +14,8 @@ class TabPane extends React.Component {
|
||||
.then(() => {
|
||||
this.setState({ loadingState: 'success' });
|
||||
})
|
||||
.catch(error => {
|
||||
.catch(() => {
|
||||
this.setState({ loadingState: 'error' });
|
||||
this.props.notify('error', getErrorMessages(error));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user