rm unnecessary extra function

This commit is contained in:
Collin M. Barrett 2019-08-04 20:00:36 -05:00
parent 0767831573
commit 4bf23bcc34

View file

@ -18,17 +18,11 @@ export class AllListsTable extends React.Component<{}, State> {
}
componentDidMount() {
this.fetch();
}
fetch() {
this.setState({ loading: true });
fetch("/api/v1/lists")
.then(response => response.json())
.then(json => {
this.setState({ data: json, loading: false });
})
};
.then(json => { this.setState({ data: json, loading: false }); })
}
render() {
return (