link fe: ensure state is initialized where used

This commit is contained in:
Fang 2020-02-06 16:56:04 +01:00
parent 9b9692e7f1
commit 375755f106
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -6,6 +6,10 @@ import { uxToHex } from '../../lib/util';
import { api } from '../../api';
export class Comments extends Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
let page = "page" + this.props.commentPage;