You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2020/10/07 05:11:46 UTC
[incubator-superset] branch master updated: fixed undefined names
error (#11180)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new a071393 fixed undefined names error (#11180)
a071393 is described below
commit a0713938b395cb68e8bfb9887f09af8f881e0641
Author: Lily Kuang <li...@preset.io>
AuthorDate: Tue Oct 6 22:11:16 2020 -0700
fixed undefined names error (#11180)
---
superset-frontend/src/views/CRUD/data/savedquery/SavedQueryList.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryList.tsx b/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryList.tsx
index 15b9ba2..93770c7 100644
--- a/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryList.tsx
+++ b/superset-frontend/src/views/CRUD/data/savedquery/SavedQueryList.tsx
@@ -256,7 +256,7 @@ function SavedQueryList({
},
}: any) => {
const names = tables.map((table: any) => table.table);
- const main = names.shift();
+ const main = names.length > 0 ? names.shift() : '';
if (names.length) {
return (