Skip to content

Commit

Permalink
fix(toolbarFieldDisplayName): issues/559 remove min char check (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Feb 16, 2021
1 parent db43d10 commit 7208660
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/toolbar/toolbarFieldDisplayName.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Button, ButtonVariant, InputGroup } from '@patternfly/react-core';
import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
import { reduxTypes, store, useSelector } from '../../redux';
import { TextInput } from '../form/textInput';
import { formHelpers } from '../form/formHelpers';
import { RHSM_API_QUERY_TYPES } from '../../types/rhsmApiTypes';
import { translate } from '../i18n/i18n';

Expand Down Expand Up @@ -35,11 +34,7 @@ const ToolbarFieldDisplayName = ({ value, t, viewId }) => {
* @event onSubmit
* @returns {void}
*/
const onSubmit = () => {
if (formHelpers.doesNotHaveMinimumCharacters(updatedValue)) {
return;
}

const onSubmit = () =>
store.dispatch([
{
type: reduxTypes.query.SET_QUERY_CLEAR_INVENTORY_LIST
Expand All @@ -50,7 +45,6 @@ const ToolbarFieldDisplayName = ({ value, t, viewId }) => {
[RHSM_API_QUERY_TYPES.DISPLAY_NAME]: updatedValue
}
]);
};

/**
* On clear, dispatch type.
Expand Down

0 comments on commit 7208660

Please sign in to comment.