From 46294d9552f363f72400a97619770e0277a07042 Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Wed, 1 Sep 2021 16:17:39 -0700 Subject: [PATCH] fix: only display the method description when present It's worth noting that, in most cases, this will always be present. This is mostly just a precaution for times when the SDK is not formatted in a way that our code expects. At the time of commit, the `logger` API documentation is returning `null` descriptions. --- src/components/MethodReference.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/MethodReference.js b/src/components/MethodReference.js index 5e15bfe8c..326e56261 100644 --- a/src/components/MethodReference.js +++ b/src/components/MethodReference.js @@ -16,12 +16,14 @@ const MethodReference = ({ className, method }) => {

{method.name}

- + {method.description && method.description !== 'undefined' && ( + + )}