Use operationIds from swagger-js if available, in layout triggers
This commit is contained in:
@@ -80,8 +80,9 @@ export default class Operations extends React.Component {
|
|||||||
<Collapse isOpened={showTag}>
|
<Collapse isOpened={showTag}>
|
||||||
{
|
{
|
||||||
operations.map( op => {
|
operations.map( op => {
|
||||||
|
const operationId =
|
||||||
const isShownKey = ["operations", op.get("id"), tag]
|
op.getIn(["operation", "__originalOperationId"]) || op.getIn(["operation", "operationId"]) || op.get("id")
|
||||||
|
const isShownKey = ["operations", operationId, tag]
|
||||||
const path = op.get("path", "")
|
const path = op.get("path", "")
|
||||||
const method = op.get("method", "")
|
const method = op.get("method", "")
|
||||||
const jumpToKey = `paths.${path}.${method}`
|
const jumpToKey = `paths.${path}.${method}`
|
||||||
|
|||||||
Reference in New Issue
Block a user