x-ui-design 0.7.73 → 0.7.74

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.esm.js CHANGED
@@ -4430,6 +4430,9 @@ const MenuItem = ({
4430
4430
  className = ''
4431
4431
  }) => {
4432
4432
  const ctx = useContext(MenuContext);
4433
+ if (!ctx) {
4434
+ return null;
4435
+ }
4433
4436
  const prefix = ctx?.prefixCls ?? prefixClsMenu;
4434
4437
  const handleClick = e => {
4435
4438
  if (disabled) {