Skip to content

Commit

Permalink
[Chore] Visualize link fix (#2395) (#2499)
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)

Co-authored-by: Matt Provost <mattprovost6@gmail.com>
  • Loading branch information
opensearch-trigger-bot[bot] and BSFishy committed Oct 10, 2022
1 parent bcd1b11 commit 0b5b4d6
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 0b5b4d6

Please sign in to comment.