From 682ca3874e589f04726e6e83d51b86d406134147 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 9 Aug 2018 14:48:36 -0700 Subject: [PATCH] [sql lab - explore flow] make sure groupby is empty (#5596) --- .../assets/src/SqlLab/components/ExploreResultsButton.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/superset/assets/src/SqlLab/components/ExploreResultsButton.jsx b/superset/assets/src/SqlLab/components/ExploreResultsButton.jsx index f5bbbe8975..b641238975 100644 --- a/superset/assets/src/SqlLab/components/ExploreResultsButton.jsx +++ b/superset/assets/src/SqlLab/components/ExploreResultsButton.jsx @@ -111,18 +111,15 @@ class ExploreResultsButton extends React.PureComponent { .done((resp) => { const columns = this.getColumns(); const data = JSON.parse(resp); - const mainGroupBy = columns.filter(d => d.is_dim)[0]; const formData = { datasource: `${data.table_id}__table`, metrics: [], + groupby: [], viz_type: 'table', since: '100 years ago', all_columns: columns.map(c => c.name), row_limit: 1000, }; - if (mainGroupBy) { - formData.groupby = [mainGroupBy.name]; - } this.props.actions.addInfoToast(t('Creating a data source and creating a new tab')); // open new window for data visualization