|
|
@@ -158,9 +158,8 @@ transformers['table'] = {
|
|
|
if (!data || data.length === 0) {
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- const noTableIndex = _.findIndex(data, d => d.type !== 'table');
|
|
|
- if (noTableIndex > -1) {
|
|
|
+ const noTableIndex = _.findIndex(data, d => 'columns' in d && 'rows' in d);
|
|
|
+ if (noTableIndex < 0) {
|
|
|
throw {
|
|
|
message: `Result of query #${String.fromCharCode(
|
|
|
65 + noTableIndex
|