Skip to content

Commit

Permalink
fix(sqllab): undefined issue_codes on query error (#23549)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark authored Apr 2, 2023
1 parent a18e33b commit bd0609d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/actions/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit bd0609d

Please sign in to comment.