mirror of
https://github.com/apache/superset.git
synced 2026-05-31 05:09:20 +00:00
fix(explore): formatting the SQL in "View Query" pop-up doesn't format (#35898)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -106,7 +106,8 @@ const ViewQuery: FC<ViewQueryProps> = props => {
|
||||
const response = await SupersetClient.get({
|
||||
endpoint: `/api/v1/dataset/${datasetId}?q=${queryParams}`,
|
||||
});
|
||||
backend = response.json.result.database;
|
||||
const { backend: datasetBackend } = response.json.result.database;
|
||||
backend = datasetBackend;
|
||||
}
|
||||
|
||||
// Format the SQL query
|
||||
|
||||
Reference in New Issue
Block a user