Merge pull request #1612 from molecula/feature/syang/groupby-filter

CLOUD-59: Updates saved query list for GroupBy filter
This commit is contained in:
Stephanie Yang 2021-06-03 16:57:22 -05:00 committed by GitHub
commit e1394c2bdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

16
lattice/.gitignore vendored Normal file
View file

@ -0,0 +1,16 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
npm-debug.log*
yarn-debug.log*
yarn-error.log*

View file

@ -104,10 +104,13 @@ export const QueryBuilder: FC<QueryBuilderProps> = ({
useEffect(() => {
setGroupByFilters(
queriesList.filter(
(q) => q.table === selectedTable.name && q.operation === 'Extract'
(q) =>
q.table === selectedTable.name &&
q.operation === 'Extract' &&
q.rowCalls.length > 0
)
);
}, [selectedTable]);
}, [selectedTable, queriesList]);
const getColumnsToShow = (cols?: { name: string; show: boolean }[]) => {
let columns: string[] = [];