mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
rm unnecessary extra function
This commit is contained in:
parent
0767831573
commit
4bf23bcc34
1 changed files with 2 additions and 8 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue