Skip to content

Commit 63bb109

Browse files
authored
Fix tool switcher navigation (#45823)
1 parent 5ba4dd1 commit 63bb109

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/tools/components/InArticlePicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ export const InArticlePicker = ({
141141

142142
return (
143143
<div data-testid={`${queryStringKey}-picker`}>
144-
<UnderlineNav {...sharedContainerProps}>
144+
{/* The key attribute is required for a bug in UnderlineNav that doesn't render the component when there are changes to the items. */}
145+
<UnderlineNav key={router.asPath} {...sharedContainerProps}>
145146
{options.map((option) => {
146147
params.set(queryStringKey, option.value)
147148
const linkProps = {

0 commit comments

Comments
 (0)