Skip to content

Commit

Permalink
UIPQB-124 Switching array operators disables the "Test" button (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs authored Aug 13, 2024
1 parent ce581e5 commit 9b83932
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* [UIPQB-74](https://folio-org.atlassian.net/browse/UIPQB-74)Non-default fields that are part of the query are automatically displayed as columns
* [UIPQB-95](https://folio-org.atlassian.net/browse/UIPQB-95) Disable run query button when records limit exceeded
* [UIPQB-96](https://folio-org.atlassian.net/browse/UIPQB-96) Extend runQuery handler with "user-friendly" query param
* [UIPQB-124](https://folio-org.atlassian.net/browse/UIPQB-124) Switching array operators disables the "Test" button

## [1.0.0](https://github.com/folio-org/ui-plugin-query-builder/tree/v1.0.0) (2023-10-12)

Expand Down
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 9b83932

Please sign in to comment.