From c0519520815cca68632bf0ea6ec3e968d1ddad3f Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Thu, 13 Jul 2017 22:48:12 -0700 Subject: [PATCH] Use operationIds from swagger-js if available, in layout triggers --- src/core/components/operations.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/components/operations.jsx b/src/core/components/operations.jsx index 679af129..abd61fbd 100644 --- a/src/core/components/operations.jsx +++ b/src/core/components/operations.jsx @@ -80,8 +80,9 @@ export default class Operations extends React.Component { { operations.map( op => { - - const isShownKey = ["operations", op.get("id"), tag] + const operationId = + op.getIn(["operation", "__originalOperationId"]) || op.getIn(["operation", "operationId"]) || op.get("id") + const isShownKey = ["operations", operationId, tag] const path = op.get("path", "") const method = op.get("method", "") const jumpToKey = `paths.${path}.${method}`