Skip to content

Commit

Permalink
[Chore] Visualize link fix (#2395) (#2497)
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
opensearch-trigger-bot[bot] authored Oct 11, 2022
1 parent 38790c5 commit a836b74
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,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 a836b74

Please sign in to comment.