fix: duplicate keys in request samples

fixes #815
This commit is contained in:
Roman Hotsiy 2019-02-26 10:35:05 +02:00
parent 4dd79cd840
commit 3ce5bff438
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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>
))}