@bigbinary/neeto-fields-frontend 1.3.40 → 1.3.41

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
@@ -2896,6 +2896,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
2896
2896
  };
2897
2897
  var isSingleResource = menuItems.length === 1;
2898
2898
  var isMenuBarNeeded = !isSingleResource && !isConfigsLoading;
2899
+ var isSearchBarNeeded = state === FIELD_STATES.active ? activeFieldsCount > 0 : inactiveFieldsCount > 0;
2899
2900
  var resourceName = React.useMemo(function () {
2900
2901
  return getResourceName({
2901
2902
  isOwnerBased: isOwnerBased,
@@ -2962,7 +2963,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
2962
2963
  handleAlertClose: handleAlertClose,
2963
2964
  handleClosePane: handleClosePane,
2964
2965
  handleReorderPaneClose: handleReorderPaneClose,
2965
- searchInputProps: searchInputProps,
2966
+ searchInputProps: isSearchBarNeeded ? searchInputProps : null,
2966
2967
  searchKeywordProps: searchKeywordProps,
2967
2968
  stateFilterTabs: stateFilterTabs,
2968
2969
  menuBarItems: menuBarItems,