diff --git a/src/containers/Rules/index.tsx b/src/containers/Rules/index.tsx index 250eaa2..2e71d2d 100644 --- a/src/containers/Rules/index.tsx +++ b/src/containers/Rules/index.tsx @@ -13,8 +13,8 @@ interface RulesProps extends BaseRouterProps, I18nProps {} @observer class Rules extends React.Component { - async componentWillMount () { - await this.props.store.fetchData() + componentWillMount () { + this.props.store.fetchData() } renderRuleItem = ({ index, key, style }) => { @@ -39,7 +39,7 @@ class Rules extends React.Component { render () { const { t } = this.props - const { rules } = this.props.store.config + const { rules } = this.props.store.data return (