From 596c370f3f151e751a9492e7f7d7fb79bfe2ad2f Mon Sep 17 00:00:00 2001 From: Rohit Singh Date: Tue, 7 May 2024 12:52:46 +0530 Subject: [PATCH] getQueriesFromChartConfig contract change --- src/main/custom-chart-context.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/custom-chart-context.ts b/src/main/custom-chart-context.ts index 5ec5315..be9a7ae 100644 --- a/src/main/custom-chart-context.ts +++ b/src/main/custom-chart-context.ts @@ -63,7 +63,10 @@ export type CustomChartContextProps = { * @returns {@link Array} * @version SDK: 0.1 | ThoughtSpot: */ - getQueriesFromChartConfig: (chartConfig: ChartConfig[]) => Query[]; + getQueriesFromChartConfig: ( + chartConfig: ChartConfig[], + chartModel: ChartModel, + ) => Query[]; /** * Main Render function that will render the chart based on the chart context provided * @@ -570,6 +573,7 @@ export class CustomChartContext { const queries = this.chartContextProps.getQueriesFromChartConfig( payload.config, + this.chartModel, ); return { queries,