Rearrange isShownKey to make more sense

Tag then ID is closer to representing the underlying data structure
This commit is contained in:
Kyle Shockey
2017-07-14 00:19:02 -07:00
parent d7f6355d85
commit 79f91b2e3e
3 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ export default class Operations extends React.Component {
operations.map( op => {
const operationId =
op.getIn(["operation", "__originalOperationId"]) || op.getIn(["operation", "operationId"]) || op.get("id")
const isShownKey = ["operations", operationId, tag]
const isShownKey = ["operations", tag, operationId]
const path = op.get("path", "")
const method = op.get("method", "")
const jumpToKey = `paths.${path}.${method}`