Fix use before definition

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2019-01-06 18:03:11 -08:00
parent 5a6f829869
commit 42efd5bc9a
+11 -3
View File
@@ -29,7 +29,15 @@ class QueryLog extends Component {
loading: false,
atEnd: false,
filtersChanged: false,
filters: [
filters: []
};
constructor(props) {
super(props);
// This happens in the constructor to avoid using dateRanges before it's
// created
this.state.filters = [
{
id: "time",
value: {
@@ -37,8 +45,8 @@ class QueryLog extends Component {
end: dateRanges.Today[1]
}
}
]
};
];
}
componentWillUnmount() {
if (this.updateHandler) {