diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js index 4b65b599258c2..260f9944f9b04 100644 --- a/superset-frontend/src/SqlLab/actions/sqlLab.js +++ b/superset-frontend/src/SqlLab/actions/sqlLab.js @@ -275,7 +275,7 @@ export function queryFailed(query, msg, link, errors) { ts: new Date().getTime(), }; errors?.forEach(({ error_type: errorType, extra }) => { - const messages = extra?.issue_codes.map(({ message }) => message) || [ + const messages = extra?.issue_codes?.map(({ message }) => message) || [ errorType, ]; messages.forEach(message => {