Skip to content

Commit

Permalink
Fix CCR search bug caused by paused follower indices (elastic#64717)
Browse files Browse the repository at this point in the history
# Conflicts:
#	x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/components/follower_indices_table/follower_indices_table.js
  • Loading branch information
cjcenizal committed May 4, 2020
1 parent 2f74672 commit 3f040e6
Showing 1 changed file with 3 additions and 3 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

0 comments on commit 3f040e6

Please sign in to comment.