Skip to content

Commit

Permalink
[Chore] Visualize link fix (#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 <provomat@amazon.com>
(cherry picked from commit 551ffa3)
  • Loading branch information
BSFishy authored and github-actions[bot] committed Oct 4, 2022
1 parent 5a74d04 commit f45b329
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,7 @@ export const getTableColumns = (application: ApplicationStart, history: History)
// 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 f45b329

Please sign in to comment.