Skip to content

Commit

Permalink
fix: clear docs state in stoplight component (stoplightio#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Podlasin authored Mar 25, 2021
1 parent d3a853a commit b2e84ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/elements/src/containers/Docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const Docs = ({ className, node }: IDocsProps) => {

return (
<StoplightComponentProvider mockUrl={mockUrlResult}>
<DocsPopup nodeType={result.type} nodeData={result.data} uri={node} className={className} />
<DocsPopup key={nodeUri} nodeType={result.type} nodeData={result.data} uri={node} className={className} />
</StoplightComponentProvider>
);
};

0 comments on commit b2e84ac

Please sign in to comment.