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:
Joe Li
2025-10-31 11:09:51 -07:00
committed by GitHub
parent d1f9c77afd
commit be3690c22b
2 changed files with 28 additions and 1 deletions

View File

@@ -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