@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
- var newColumns = [];
315
- var items = (0, _utils.getSubColumns)(v.subquery);
316
- newColumns = items === null || items === void 0 ? void 0 : items.flatMap(function (item) {
317
- return item.columns;
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 { getSubColumns, findIndex } from '../utils';
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
- var newColumns = [];
308
- var items = getSubColumns(v.subquery);
309
- newColumns = items === null || items === void 0 ? void 0 : items.flatMap(function (item) {
310
- return item.columns;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gingkoo/pandora-metabase",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "",
5
5
  "main": "lib/es/index.js",
6
6
  "module": "lib/es/index.js",