mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Fix CCR search bug caused by paused follower indices (#64717)
This commit is contained in:
parent
f98f4f27e0
commit
f1d1b8c195
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
});
|
||||
|
@ -273,7 +273,7 @@ export class FollowerIndicesTable extends PureComponent {
|
|||
};
|
||||
|
||||
const selection = {
|
||||
onSelectionChange: selectedItems => this.setState({ selectedItems }),
|
||||
onSelectionChange: newSelectedItems => this.setState({ selectedItems: newSelectedItems }),
|
||||
};
|
||||
|
||||
const search = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue