datastake-daf 0.6.789 → 0.6.790

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.
@@ -32637,7 +32637,8 @@ const getColumns$7 = ({
32637
32637
  className: "daf-default-cell"
32638
32638
  });
32639
32639
  }
32640
- const category = findOptions(v, data?.options?.locationCategories);
32640
+ const locationCategories = [...(data?.options?.locationCategories || []), ...(options?.productionSiteCategories || [])];
32641
+ const category = findOptions(v, locationCategories);
32641
32642
  return category ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
32642
32643
  title: category,
32643
32644
  children: category
@@ -33082,7 +33083,8 @@ const getColumns$6 = ({
33082
33083
  className: "daf-default-cell"
33083
33084
  });
33084
33085
  }
33085
- const category = findOptions(v, options?.locationCategories);
33086
+ const locationCategories = [...(options?.locationCategories || []), ...(options?.productionSiteCategories || [])];
33087
+ const category = findOptions(v, locationCategories);
33086
33088
  return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
33087
33089
  title: category,
33088
33090
  children: category
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.789",
3
+ "version": "0.6.790",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -79,7 +79,8 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
79
79
  if (all.empty) {
80
80
  return <div className="daf-default-cell" />
81
81
  }
82
- const category = findOptions(v, options?.locationCategories);
82
+ const locationCategories = [...(options?.locationCategories || []), ...(options?.productionSiteCategories || [])]
83
+ const category = findOptions(v, locationCategories);
83
84
 
84
85
  return <Tooltip title={category}>{category}</Tooltip>;
85
86
  },
@@ -43,7 +43,9 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
43
43
  return <div className="daf-default-cell" />
44
44
  }
45
45
 
46
- const category = findOptions(v, data?.options?.locationCategories);
46
+ const locationCategories = [...(data?.options?.locationCategories || []), ...(options?.productionSiteCategories || [])]
47
+
48
+ const category = findOptions(v, locationCategories);
47
49
 
48
50
  return category ? <Tooltip title={category}>{category}</Tooltip> : '-';
49
51
  },