Skip to content

Commit

Permalink
[7.8] Fix CCR search bug caused by paused follower indices (elastic#6…
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed May 6, 2020
1 parent 52ad59b commit fb1ec66
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export class FollowerIndicesTable extends PureComponent {

if (queryText) {
return followerIndices.filter(followerIndex => {
const { name, shards } = followerIndex;
const { name, remoteCluster, leaderIndex } = followerIndex;

const inName = name.toLowerCase().includes(queryText);
const inRemoteCluster = shards[0].remoteCluster.toLowerCase().includes(queryText);
const inLeaderIndex = shards[0].leaderIndex.toLowerCase().includes(queryText);
const inRemoteCluster = remoteCluster.toLowerCase().includes(queryText);
const inLeaderIndex = leaderIndex.toLowerCase().includes(queryText);

return inName || inRemoteCluster || inLeaderIndex;
});
Expand Down Expand Up @@ -273,7 +273,7 @@ export class FollowerIndicesTable extends PureComponent {
};

const selection = {
onSelectionChange: selectedItems => this.setState({ selectedItems }),
onSelectionChange: newSelectedItems => this.setState({ selectedItems: newSelectedItems }),
};

const search = {
Expand Down

0 comments on commit fb1ec66

Please sign in to comment.