From 97b3ce2c06b3253ae385ca93255fac79ca5cd4f4 Mon Sep 17 00:00:00 2001
From: Maxime Beauchemin <maximebeauchemin@gmail.com>
Date: Fri, 24 Aug 2018 11:44:40 -0700
Subject: [PATCH] [bugfix] add item is missing on table editor metrics tab
 (#5714)

(cherry picked from commit 14930bbddbb89df9d90ed8b436799b5205e11e32)
---
 superset/assets/src/datasource/DatasourceEditor.jsx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superset/assets/src/datasource/DatasourceEditor.jsx b/superset/assets/src/datasource/DatasourceEditor.jsx
index 10523eaf90666..df03ea768fc08 100644
--- a/superset/assets/src/datasource/DatasourceEditor.jsx
+++ b/superset/assets/src/datasource/DatasourceEditor.jsx
@@ -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>',