@scenid/react-formulator 0.4.3 → 0.4.4

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.js CHANGED
@@ -31951,7 +31951,7 @@ var FormAutocomplete = function FormAutocomplete(_ref) {
31951
31951
  renderOption: function renderOption(option) {
31952
31952
  return /*#__PURE__*/React__default["default"].createElement(_Box__default["default"], null, /*#__PURE__*/React__default["default"].createElement(_Typography__default["default"], {
31953
31953
  variant: "body1"
31954
- }, option.entry), option.count !== undefined && /*#__PURE__*/React__default["default"].createElement(_Typography__default["default"], {
31954
+ }, option.entry), option.count !== undefined && option.count !== null && /*#__PURE__*/React__default["default"].createElement(_Typography__default["default"], {
31955
31955
  variant: "caption"
31956
31956
  }, "".concat(option.count, " Eintr\xE4ge")));
31957
31957
  },
package/dist/index.esm.js CHANGED
@@ -31882,7 +31882,7 @@ var FormAutocomplete = function FormAutocomplete(_ref) {
31882
31882
  renderOption: function renderOption(option) {
31883
31883
  return /*#__PURE__*/React__default.createElement(_Box, null, /*#__PURE__*/React__default.createElement(_Typography, {
31884
31884
  variant: "body1"
31885
- }, option.entry), option.count !== undefined && /*#__PURE__*/React__default.createElement(_Typography, {
31885
+ }, option.entry), option.count !== undefined && option.count !== null && /*#__PURE__*/React__default.createElement(_Typography, {
31886
31886
  variant: "caption"
31887
31887
  }, "".concat(option.count, " Eintr\xE4ge")));
31888
31888
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenid/react-formulator",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",
@@ -105,7 +105,7 @@ const FormAutocomplete = ({
105
105
  {option.entry}
106
106
  </Typography>
107
107
  {
108
- option.count !== undefined
108
+ (option.count !== undefined && option.count !== null)
109
109
  && (
110
110
  <Typography variant="caption">
111
111
  {`${option.count} Einträge`}