Make fields empty array if no key detected
parent
00b7a5c050
commit
61985ac847
|
@ -104,7 +104,7 @@ class FieldList extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderList() {
|
renderList() {
|
||||||
const {database, measurement, fields} = this.props.query
|
const {database, measurement, fields = []} = this.props.query
|
||||||
if (!database || !measurement) {
|
if (!database || !measurement) {
|
||||||
return (
|
return (
|
||||||
<div className="query-builder--list-empty">
|
<div className="query-builder--list-empty">
|
||||||
|
|
Loading…
Reference in New Issue