mirror of
https://github.com/Redocly/redoc.git
synced 2025-04-30 05:33:47 +03:00
parent
4dd79cd840
commit
3ce5bff438
|
@ -30,7 +30,7 @@ export class RequestSamples extends React.Component<RequestSamplesProps> {
|
||||||
<TabList>
|
<TabList>
|
||||||
{hasBodySample && <Tab key="payload"> Payload </Tab>}
|
{hasBodySample && <Tab key="payload"> Payload </Tab>}
|
||||||
{samples.map(sample => (
|
{samples.map(sample => (
|
||||||
<Tab key={sample.lang}>
|
<Tab key={sample.lang + '_' + (sample.label || '')}>
|
||||||
{sample.label !== undefined ? sample.label : sample.lang}
|
{sample.label !== undefined ? sample.label : sample.lang}
|
||||||
</Tab>
|
</Tab>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user