Skip to content

Commit

Permalink
fixed filter of datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro-KX committed Sep 19, 2023
1 parent 2841290 commit b7505a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/commands/dataSourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ export async function runDataSource(dataSourceForm: any): Promise<void> {
}

if (filter !== undefined) {
apiBody.filter = filter;
apiBody.filter = filter.map((filterEl: string) => {
return filterEl.split(";");
});
}

if (groupBy !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion src/models/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type getDataBodyPayload = {
endTS?: string;
fill?: string;
temporary?: string;
filter?: string[];
filter?: string[][];
groupBy?: string[];
agg?: string[];
sortCols?: string[];
Expand Down

0 comments on commit b7505a2

Please sign in to comment.