You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ju...@apache.org on 2023/04/02 18:46:33 UTC

[superset] branch master updated: fix(sqllab): undefined issue_codes on query error (#23549)

This is an automated email from the ASF dual-hosted git repository.

justinpark pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new bd0609df58 fix(sqllab): undefined issue_codes on query error (#23549)
bd0609df58 is described below

commit bd0609df5874ec8eca1ca6e0d56c8236ec1fcce9
Author: JUST.in DO IT <ju...@airbnb.com>
AuthorDate: Sun Apr 2 11:46:23 2023 -0700

    fix(sqllab): undefined issue_codes on query error (#23549)
---
 superset-frontend/src/SqlLab/actions/sqlLab.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index 4b65b59925..260f9944f9 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 => {