Skip to content

Commit 208e23d

Browse files
author
Usman Yasin
committed
fix: Suggested fix for the issue with Generated SQL tab in playground
1 parent 81a1ae9 commit 208e23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-client-core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ class CubeApi {
627627
query,
628628
signal: options?.signal
629629
}),
630-
(response: any) => (Array.isArray(response) ? response.map((body) => new SqlQuery(body)) : new SqlQuery(response)),
630+
(response: any) => (Array.isArray(response) ? response.map((body) => new SqlQuery(body.sql)) : new SqlQuery(response.sql)),
631631
options,
632632
callback
633633
);

0 commit comments

Comments
 (0)