mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
parent
4dd79cd840
commit
3ce5bff438
|
@ -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>
|
||||
))}
|
||||
|
|
Loading…
Reference in New Issue
Block a user