ywana-core8 0.0.760 → 0.0.761
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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +2 -1
package/package.json
CHANGED
package/src/html/table.js
CHANGED
@@ -260,7 +260,8 @@ const NumberCellViewer = ({ id, value, format, maxDecimals }) => {
|
|
260
260
|
}
|
261
261
|
} else {
|
262
262
|
const decimals = maxDecimals ? maxDecimals : 2
|
263
|
-
|
263
|
+
// check value is a number
|
264
|
+
return (value && !isNaN(value)) ? <span>{value.toFixed(decimals)}</span> : ""
|
264
265
|
}
|
265
266
|
}
|
266
267
|
|