Skip to content

Commit

Permalink
UIPQB-124 Switching array operators disables the "Test" button
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Aug 12, 2024
1 parent ce581e5 commit 1c3be2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const DataTypeInput = ({

const multiSelectControl = ({ testId } = {}) => (
<SelectionContainer
operator={operator}
testId={testId}
component={MultiSelection}
source={source}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useIntl } from 'react-intl';
import { useParamsDataSource } from '../../../../hooks/useParamsDataSource';

export const SelectionContainer = ({
operator,
component: Component,
availableValues,
getParamsSource,
Expand Down Expand Up @@ -50,6 +51,7 @@ export const SelectionContainer = ({

return (
<Component
key={operator}
{...rest}
data-testid={testId}
onChange={onChange}
Expand All @@ -59,6 +61,7 @@ export const SelectionContainer = ({
};

SelectionContainer.propTypes = {
operator: PropTypes.string,
component: PropTypes.elementType,
testId: PropTypes.string,
isMulti: PropTypes.bool,
Expand Down

0 comments on commit 1c3be2c

Please sign in to comment.