Skip to content

Commit

Permalink
[Chore] Visualize link fix (opensearch-project#2395)
Browse files Browse the repository at this point in the history
* Fix links in visualize plugin
* Fix links to other apps

Signed-off-by: Matt Provost <[email protected]>
  • Loading branch information
BSFishy authored Oct 4, 2022
1 parent 3bc49ae commit 551ffa3
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,7 @@ export const getTableColumns = (
// In case an error occurs i.e. the vis has wrong type, we render the vis but without the link
!error ? (
<EuiLink
onClick={() => {
if (editApp) {
application.navigateToApp(editApp, { path: editUrl });
} else if (editUrl) {
history.push(editUrl);
}
}}
href={editApp ? application.getUrlForApp(editApp, { path: editUrl }) : `#${editUrl}`}
data-test-subj={`visListingTitleLink-${title.split(' ').join('-')}`}
>
{field}
Expand Down

0 comments on commit 551ffa3

Please sign in to comment.