mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
filter out saved queries without rowCalls
This commit is contained in:
parent
29002b3f62
commit
c1915ff361
1 changed files with 5 additions and 2 deletions
|
|
@ -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[] = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue