mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
158 paginated data list (#180)
* working: rename OrganizationTeamsList to PaginatedDataList * convert org notifications list fully to PaginatedDataList * update NotificationList tests * refactor org access to use PaginatedDataList * update tests for org access refactor; fix pagination & sorting * restore Add Role functionality to Org roles * fix displayed text when list of items is empty * preserve query params when navigating through pagination * fix bugs after RBAC rebase * fix lint errors, fix add org access button
This commit is contained in:
@@ -36,7 +36,7 @@ class Search extends React.Component {
|
||||
const { columns } = this.props;
|
||||
const { innerText } = target;
|
||||
|
||||
const [{ key: searchKey }] = columns.filter(({ name }) => name === innerText);
|
||||
const { key: searchKey } = columns.find(({ name }) => name === innerText);
|
||||
this.setState({ isSearchDropdownOpen: false, searchKey });
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class Search extends React.Component {
|
||||
searchValue,
|
||||
} = this.state;
|
||||
|
||||
const [{ name: searchColumnName }] = columns.filter(({ key }) => key === searchKey);
|
||||
const { name: searchColumnName } = columns.find(({ key }) => key === searchKey);
|
||||
|
||||
const searchDropdownItems = columns
|
||||
.filter(({ key }) => key !== searchKey)
|
||||
|
||||
Reference in New Issue
Block a user