fixed undefined names error (#11180)

This commit is contained in:
Lily Kuang 2020-10-06 22:11:16 -07:00 committed by GitHub
parent 21c8d672a8
commit a0713938b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 (