diff --git a/src/core/components/operation.jsx b/src/core/components/operation.jsx index 9f32303b..eb21b8db 100644 --- a/src/core/components/operation.jsx +++ b/src/core/components/operation.jsx @@ -161,18 +161,12 @@ export default class Operation extends PureComponent {
{method.toUpperCase()} - { - isDeepLinkingEnabled ? - e.preventDefault()} - href={`#/${isShownKey[1]}/${isShownKey[2]}`}> - {path} - : - - {path} - - } + e.preventDefault() : null} + href={isDeepLinkingEnabled ? `#/${isShownKey[1]}/${isShownKey[2]}` : null}> + {path} + diff --git a/src/core/components/operations.jsx b/src/core/components/operations.jsx index 5610275d..2aec664a 100644 --- a/src/core/components/operations.jsx +++ b/src/core/components/operations.jsx @@ -79,18 +79,12 @@ export default class Operations extends React.Component { onClick={() => layoutActions.show(isShownKey, !showTag)} className={!tagDescription ? "opblock-tag no-desc" : "opblock-tag" } id={isShownKey.join("-")}> - { - isDeepLinkingEnabled ? - e.preventDefault()} - href= {`#/${tag}`}> - {tag} - : - - {tag} - - } + e.preventDefault() : null} + href= {isDeepLinkingEnabled ? `#/${tag}` : null}> + {tag} + { !tagDescription ? null : { tagDescription }