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 committed Sep 14, 2018
1 parent 3d11bf6 commit 97254f9
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 97254f9

Please sign in to comment.