mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix(sqllab): undefined issue_codes on query error (#23549)
This commit is contained in:
parent
a18e33b3bc
commit
bd0609df58
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user