Skip to content

Commit

Permalink
fix: duplicate keys in request samples
Browse files Browse the repository at this point in the history
fixes #815
  • Loading branch information
RomanHotsiy committed Feb 26, 2019
1 parent 4dd79cd commit 3ce5bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RequestSamples/RequestSamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class RequestSamples extends React.Component<RequestSamplesProps> {
<TabList>
{hasBodySample && <Tab key="payload"> Payload </Tab>}
{samples.map(sample => (
<Tab key={sample.lang}>
<Tab key={sample.lang + '_' + (sample.label || '')}>
{sample.label !== undefined ? sample.label : sample.lang}
</Tab>
))}
Expand Down

0 comments on commit 3ce5bff

Please sign in to comment.