@selfcommunity/react-ui 0.11.0-alpha.88 → 0.11.0-alpha.89

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.
@@ -78,7 +78,6 @@ function Category(inProps) {
78
78
  // HOOKS
79
79
  const intl = (0, react_intl_1.useIntl)();
80
80
  const categoryFollowEnabled = (0, react_core_1.useSCPreferenceEnabled)(react_core_1.SCPreferences.CONFIGURATIONS_CATEGORY_FOLLOW_ENABLED);
81
- console.log(showFollowers, categoryFollowEnabled);
82
81
  if (!scCategory) {
83
82
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ elevation: elevation }, (variant && { variant })));
84
83
  }
@@ -47,7 +47,7 @@ const UserAutocomplete = (inProps) => {
47
47
  }, [value]);
48
48
  // Handlers
49
49
  const handleOpen = () => {
50
- setOpen(true);
50
+ users.length > 0 && setOpen(true);
51
51
  };
52
52
  const handleClose = () => {
53
53
  setOpen(false);
@@ -76,7 +76,6 @@ export default function Category(inProps) {
76
76
  // HOOKS
77
77
  const intl = useIntl();
78
78
  const categoryFollowEnabled = useSCPreferenceEnabled(SCPreferences.CONFIGURATIONS_CATEGORY_FOLLOW_ENABLED);
79
- console.log(showFollowers, categoryFollowEnabled);
80
79
  if (!scCategory) {
81
80
  return _jsx(CategorySkeleton, Object.assign({ elevation: elevation }, (variant && { variant })));
82
81
  }
@@ -45,7 +45,7 @@ const UserAutocomplete = (inProps) => {
45
45
  }, [value]);
46
46
  // Handlers
47
47
  const handleOpen = () => {
48
- setOpen(true);
48
+ users.length > 0 && setOpen(true);
49
49
  };
50
50
  const handleClose = () => {
51
51
  setOpen(false);