@gingkoo/pandora-metabase 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -311,12 +311,10 @@ var useStore = function useStore() {
|
|
|
311
311
|
fetchColumns(newMeta[i].table2, newMeta[i].table2.datasourceId, v.columns, function () {
|
|
312
312
|
var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
313
313
|
if (v.isSubquery) {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
newColumns = items
|
|
317
|
-
|
|
318
|
-
});
|
|
319
|
-
newMeta[i].columns = newColumns || [];
|
|
314
|
+
// let newColumns: any = [];
|
|
315
|
+
// const items = getSubColumns(v.subquery);
|
|
316
|
+
// newColumns = items?.flatMap((item) => item.columns);
|
|
317
|
+
// (newMeta[i] as MetaJoin).columns = newColumns || [];
|
|
320
318
|
} else {
|
|
321
319
|
newMeta[i].columns = columns || [];
|
|
322
320
|
}
|
|
@@ -8,7 +8,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
import { useState, useRef, useMemo } from 'react';
|
|
9
9
|
import { uuidv4 } from '../utils/helper';
|
|
10
10
|
import { TypeEnum, JoinEnum, UnionEnum } from '../store/enum';
|
|
11
|
-
import {
|
|
11
|
+
import { findIndex } from '../utils';
|
|
12
12
|
var metaKey = 1;
|
|
13
13
|
export var SummarizeAlias = 'source';
|
|
14
14
|
var useStore = function useStore() {
|
|
@@ -304,12 +304,10 @@ var useStore = function useStore() {
|
|
|
304
304
|
fetchColumns(newMeta[i].table2, newMeta[i].table2.datasourceId, v.columns, function () {
|
|
305
305
|
var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
306
306
|
if (v.isSubquery) {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
newColumns = items
|
|
310
|
-
|
|
311
|
-
});
|
|
312
|
-
newMeta[i].columns = newColumns || [];
|
|
307
|
+
// let newColumns: any = [];
|
|
308
|
+
// const items = getSubColumns(v.subquery);
|
|
309
|
+
// newColumns = items?.flatMap((item) => item.columns);
|
|
310
|
+
// (newMeta[i] as MetaJoin).columns = newColumns || [];
|
|
313
311
|
} else {
|
|
314
312
|
newMeta[i].columns = columns || [];
|
|
315
313
|
}
|