@haniffalab/cherita-react 0.2.0-dev.2024-10-16.42ace931 → 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-16.42ace931",
3
+ "version": "0.2.0-dev.2024-10-17.c3b9fbf2",
4
4
  "author": "",
5
5
  "license": "",
6
6
  "main": "dist/index.js",
@@ -9,7 +9,7 @@
9
9
  "sass": "scss/cherita.scss",
10
10
  "files": [
11
11
  "dist",
12
- "src/scss"
12
+ "scss"
13
13
  ],
14
14
  "dependencies": {
15
15
  "@emotion/react": "^11.11.4",
@@ -49,6 +49,7 @@
49
49
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
50
50
  "@babel/preset-env": "^7.22.5",
51
51
  "@babel/preset-react": "^7.22.5",
52
+ "cpx": "^1.5.0",
52
53
  "eslint": "^8.42.0",
53
54
  "eslint-config-prettier": "^8.8.0",
54
55
  "eslint-config-react-app": "^7.0.1",
@@ -63,7 +64,8 @@
63
64
  "start": "react-scripts start",
64
65
  "build:babel": "babel src/lib --out-dir dist --copy-files",
65
66
  "build:scss": "sass --load-path=node_modules src/scss/cherita.scss dist/css/cherita.css",
66
- "build": "npm run build:babel && npm run build:scss",
67
+ "copy:scss": "cpx src/scss/**/* scss",
68
+ "build": "npm run build:babel && npm run build:scss && npm run copy:scss",
67
69
  "test": "react-scripts test",
68
70
  "eject": "react-scripts eject",
69
71
  "lint:scss": "stylelint 'src/**/*.scss' --fix",
@@ -98,5 +100,5 @@
98
100
  "url": "https://github.com/haniffalab/cherita-react/issues"
99
101
  },
100
102
  "homepage": "https://github.com/haniffalab/cherita-react#readme",
101
- "prereleaseSha": "42ace931dce89c4df3bcbe86364084a861e2172f"
103
+ "prereleaseSha": "c3b9fbf20e3c620d6c4d2c6feab064d8493202c5"
102
104
  }
File without changes