Skip to content

Commit

Permalink
[ML] Fix stale / loading EuiContextMenuPanel item
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Apr 26, 2022
1 parent 11455c8 commit c9b0331
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,11 @@ export const LinksMenuUI = (props: LinksMenuProps) => {
]);

return (
<EuiContextMenuPanel items={contextMenuItems} data-test-subj="mlAnomaliesListRowActionsMenu" />
<EuiContextMenuPanel
items={contextMenuItems}
watchedItemProps={['disabled']} // Ensures the 'View in Discover' link rerenders when loading completes
data-test-subj="mlAnomaliesListRowActionsMenu"
/>
);
};

Expand Down

0 comments on commit c9b0331

Please sign in to comment.