Skip to content

Commit

Permalink
[Discover] fix encoded param for context
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaanj committed Jan 12, 2022
1 parent 348bfb8 commit d9948c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function ContextAppRoute(props: DiscoverRouteProps) {
const { chrome } = services;

const { indexPatternId, id } = useParams<ContextUrlParams>();
const anchorId = decodeURIComponent(id);
const breadcrumb = useMainRouteBreadcrumb();

useEffect(() => {
Expand Down Expand Up @@ -68,5 +69,5 @@ export function ContextAppRoute(props: DiscoverRouteProps) {
return <LoadingIndicator />;
}

return <ContextApp anchorId={id} indexPattern={indexPattern} />;
return <ContextApp anchorId={anchorId} indexPattern={indexPattern} />;
}

0 comments on commit d9948c4

Please sign in to comment.