Skip to content

Commit

Permalink
[bugfix] add item is missing on table editor metrics tab (apache#5714)
Browse files Browse the repository at this point in the history
(cherry picked from commit 14930bb)
  • Loading branch information
mistercrunch authored and betodealmeida committed Oct 30, 2018
1 parent 681a851 commit 86b0eb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/assets/src/datasource/DatasourceEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ export class DatasourceEditor extends React.PureComponent {
</FormContainer>
}
collection={this.state.datasource.metrics}
allowAddItem
onChange={this.onDatasourcePropChange.bind(this, 'metrics')}
itemGenerator={() => ({
metric_name: '<new metric>',
Expand Down

0 comments on commit 86b0eb3

Please sign in to comment.