Skip to content

Commit

Permalink
[RAM] Fix o11y view in app (elastic#172740)
Browse files Browse the repository at this point in the history
## Summary

Fix -> elastic#166982

(cherry picked from commit ba27a25)
  • Loading branch information
XavierM committed Dec 7, 2023
1 parent 72c964f commit 0f72cf8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ export function AlertActions({
const observabilityAlert = parseObservabilityAlert(alert);

useEffect(() => {
const alertLink = alert.link as unknown as string;
if (!alert.hasBasePath) {
const alertLink = observabilityAlert.link as unknown as string;
if (!observabilityAlert.hasBasePath) {
setViewInAppUrl(prepend(alertLink ?? ''));
} else {
setViewInAppUrl(alertLink);
}
}, [alert.hasBasePath, alert.link, prepend]);
}, [observabilityAlert.hasBasePath, observabilityAlert.link, prepend]);

const [isPopoverOpen, setIsPopoverOpen] = useState<boolean>(false);

Expand Down

0 comments on commit 0f72cf8

Please sign in to comment.