From 6b8c44f38ed4206a7d27c5c0c1abb5b25ffd7b3c Mon Sep 17 00:00:00 2001 From: Anya Stasiuk Date: Fri, 14 Aug 2020 16:20:26 +0300 Subject: [PATCH] fix: hide path in middle panel for webhooks --- src/components/Operation/Operation.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Operation/Operation.tsx b/src/components/Operation/Operation.tsx index 53bc53df..57776cf0 100644 --- a/src/components/Operation/Operation.tsx +++ b/src/components/Operation/Operation.tsx @@ -42,7 +42,7 @@ export class Operation extends React.Component { return ( - {options => ( + {(options) => (

@@ -50,7 +50,9 @@ export class Operation extends React.Component { {summary} {deprecated && Deprecated } {isWebhook && Webhook }

- {options.pathInMiddlePanel && } + {options.pathInMiddlePanel && !isWebhook && ( + + )} {hasDescription && ( {description !== undefined && }