1 parent 5ba4dd1 commit 63bb109Copy full SHA for 63bb109
1 file changed
src/tools/components/InArticlePicker.tsx
@@ -141,7 +141,8 @@ export const InArticlePicker = ({
141
142
return (
143
<div data-testid={`${queryStringKey}-picker`}>
144
- <UnderlineNav {...sharedContainerProps}>
+ {/* 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}>
146
{options.map((option) => {
147
params.set(queryStringKey, option.value)
148
const linkProps = {
0 commit comments