|
1 | 1 | import React from "react" |
2 | 2 | import PropTypes from "prop-types" |
3 | 3 | import { helpers } from "swagger-client" |
4 | | - |
| 4 | +import { createDeepLinkPath } from "core/utils" |
5 | 5 | const { opId } = helpers |
6 | 6 |
|
7 | 7 | export default class Operations extends React.Component { |
@@ -71,7 +71,7 @@ export default class Operations extends React.Component { |
71 | 71 | let tagExternalDocsDescription = tagObj.getIn(["tagDetails", "externalDocs", "description"]) |
72 | 72 | let tagExternalDocsUrl = tagObj.getIn(["tagDetails", "externalDocs", "url"]) |
73 | 73 |
|
74 | | - let isShownKey = ["operations-tag", tag] |
| 74 | + let isShownKey = ["operations-tag", createDeepLinkPath(tag)] |
75 | 75 | let showTag = layoutSelectors.isShown(isShownKey, docExpansion === "full" || docExpansion === "list") |
76 | 76 |
|
77 | 77 | return ( |
@@ -126,7 +126,7 @@ export default class Operations extends React.Component { |
126 | 126 |
|
127 | 127 | const operationId = |
128 | 128 | op.getIn(["operation", "operationId"]) || op.getIn(["operation", "__originalOperationId"]) || opId(op.get("operation"), path, method) || op.get("id") |
129 | | - const isShownKey = ["operations", tag, operationId] |
| 129 | + const isShownKey = ["operations", createDeepLinkPath(tag), createDeepLinkPath(operationId)] |
130 | 130 |
|
131 | 131 | const allowTryItOut = specSelectors.allowTryItOutFor(op.get("path"), op.get("method")) |
132 | 132 | const response = specSelectors.responseFor(op.get("path"), op.get("method")) |
|
0 commit comments