mirror of
https://github.com/apache/superset.git
synced 2024-09-06 05:47:43 -04:00
fixed undefined names error (#11180)
This commit is contained in:
parent
21c8d672a8
commit
a0713938b3
@ -256,7 +256,7 @@ function SavedQueryList({
|
|||||||
},
|
},
|
||||||
}: any) => {
|
}: any) => {
|
||||||
const names = tables.map((table: any) => table.table);
|
const names = tables.map((table: any) => table.table);
|
||||||
const main = names.shift();
|
const main = names.length > 0 ? names.shift() : '';
|
||||||
|
|
||||||
if (names.length) {
|
if (names.length) {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user