@gingkoo/pandora-metabase 0.0.1-alpha.16 → 0.0.1-alpha.17

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.
package/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-metabase v0.0.1-alpha.16
2
+ * @gingkoo/pandora-metabase v0.0.1-alpha.17
3
3
  */
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import * as React from 'react';
@@ -5159,11 +5159,13 @@ const JoinData = props => {
5159
5159
  let index = findIndex(store.metaList, meta);
5160
5160
  let newMeta = store.metaList.slice();
5161
5161
  newMeta[index].expressions[_ind][type] = !newMeta[index].expressions[_ind][type];
5162
+ store.setMeta(newMeta);
5162
5163
  }
5163
5164
  function onChangeString(type, _ind, val) {
5164
5165
  let index = findIndex(store.metaList, meta);
5165
5166
  let newMeta = store.metaList.slice();
5166
5167
  newMeta[index].expressions[_ind][type] = val;
5168
+ store.setMeta(newMeta);
5167
5169
  }
5168
5170
  return jsx(Wrapper, {
5169
5171
  className: cx(`Sqb-item`),
@@ -5341,7 +5343,7 @@ const JoinData = props => {
5341
5343
  })
5342
5344
  })]
5343
5345
  }, i);
5344
- }), meta.table1.column_id && meta.table2.column_id && meta.expressions.length < 1 && jsx(Tooltip$1, {
5346
+ }), meta.table1.column_id && meta.table2.column_id && (meta.expressions?.length || 0) < 1 && jsx(Tooltip$1, {
5345
5347
  title: __('SqlQueryBuilder.add'),
5346
5348
  children: jsx(Button$1, {
5347
5349
  disabled: meta.readonly,