@lobehub/ui 2.10.2 → 2.10.3

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.
@@ -26,7 +26,8 @@ import { useStyles } from "./style";
26
26
  import { jsx as _jsx } from "react/jsx-runtime";
27
27
  var Markdown = /*#__PURE__*/memo(function (_ref) {
28
28
  var ref = _ref.ref,
29
- children = _ref.children,
29
+ _ref$children = _ref.children,
30
+ children = _ref$children === void 0 ? '' : _ref$children,
30
31
  className = _ref.className,
31
32
  style = _ref.style,
32
33
  fullFeaturedCodeBlock = _ref.fullFeaturedCodeBlock,
@@ -161,7 +162,7 @@ var Markdown = /*#__PURE__*/memo(function (_ref) {
161
162
  variant: variant
162
163
  },
163
164
  children: customRender ? customRender(defaultDOM, {
164
- text: children || ''
165
+ text: children
165
166
  }) : defaultDOM
166
167
  })
167
168
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",