@haniffalab/cherita-react 0.2.0-dev.2024-10-17.d625aa19 → 0.2.0-dev.2024-10-17.c3b9fbf2

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.
@@ -106,14 +106,16 @@ function VarDiseaseInfoItem(item) {
106
106
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
107
107
  children: item.organs.map(o => o.name).join(", ")
108
108
  })]
109
- }), !!item.metadata?.length && item.metadata.map(m => {
110
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
111
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
112
- children: m.key
113
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
114
- children: m.value
115
- })]
116
- });
109
+ }), !_lodash.default.isEmpty(item.metadata) && _lodash.default.map(item.metadata, (value, key) => {
110
+ if (value !== null && value !== undefined) {
111
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
112
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
113
+ children: key
114
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
115
+ children: value
116
+ })]
117
+ });
118
+ }
117
119
  })]
118
120
  })
119
121
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haniffalab/cherita-react",
3
- "version": "0.2.0-dev.2024-10-17.d625aa19",
3
+ "version": "0.2.0-dev.2024-10-17.c3b9fbf2",
4
4
  "author": "",
5
5
  "license": "",
6
6
  "main": "dist/index.js",
@@ -100,5 +100,5 @@
100
100
  "url": "https://github.com/haniffalab/cherita-react/issues"
101
101
  },
102
102
  "homepage": "https://github.com/haniffalab/cherita-react#readme",
103
- "prereleaseSha": "d625aa19fa49bbf65fe8ebefd1b36c4c2b3f18b4"
103
+ "prereleaseSha": "c3b9fbf20e3c620d6c4d2c6feab064d8493202c5"
104
104
  }