Make fields empty array if no key detected

pull/1947/head
Andrew Watkins 2017-08-30 13:46:43 -07:00
parent 00b7a5c050
commit 61985ac847
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class FieldList extends Component {
}
renderList() {
const {database, measurement, fields} = this.props.query
const {database, measurement, fields = []} = this.props.query
if (!database || !measurement) {
return (
<div className="query-builder--list-empty">