@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 +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2859,6 +2859,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
|
|
|
2859
2859
|
};
|
|
2860
2860
|
var isSingleResource = menuItems.length === 1;
|
|
2861
2861
|
var isMenuBarNeeded = !isSingleResource && !isConfigsLoading;
|
|
2862
|
+
var isSearchBarNeeded = state === FIELD_STATES.active ? activeFieldsCount > 0 : inactiveFieldsCount > 0;
|
|
2862
2863
|
var resourceName = useMemo(function () {
|
|
2863
2864
|
return getResourceName({
|
|
2864
2865
|
isOwnerBased: isOwnerBased,
|
|
@@ -2925,7 +2926,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
|
|
|
2925
2926
|
handleAlertClose: handleAlertClose,
|
|
2926
2927
|
handleClosePane: handleClosePane,
|
|
2927
2928
|
handleReorderPaneClose: handleReorderPaneClose,
|
|
2928
|
-
searchInputProps: searchInputProps,
|
|
2929
|
+
searchInputProps: isSearchBarNeeded ? searchInputProps : null,
|
|
2929
2930
|
searchKeywordProps: searchKeywordProps,
|
|
2930
2931
|
stateFilterTabs: stateFilterTabs,
|
|
2931
2932
|
menuBarItems: menuBarItems,
|