Skip to content

Commit

Permalink
Fix deep-linking to follower index after creating/updating it. (#29865)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored Feb 2, 2019
1 parent 54d776e commit 4ec25b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,13 @@ export class DetailPanelUi extends Component {

renderFooter() {
const {
followerIndexId,
followerIndex,
closeDetailPanel,
} = this.props;

const indexManagementUri = getIndexListUri(`name:${followerIndex.name}`);
// Use ID instead of followerIndex, because followerIndex may not be loaded yet.
const indexManagementUri = getIndexListUri(`name:${followerIndexId}`);

return (
<EuiFlyoutFooter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const saveFollowerIndex = (name, followerIndex, isUpdating = false) => (

toastNotifications.addSuccess(successMessage);
routing.navigate(`/follower_indices`, undefined, {
pattern: encodeURIComponent(name),
name: encodeURIComponent(name),
});
},
})
Expand Down

0 comments on commit 4ec25b2

Please sign in to comment.