From 4b302d54dcea9882e1bf07b29af1890b2719c5ec Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Tue, 8 Jan 2019 12:40:57 +0100 Subject: [PATCH] Only display API version if present --- src/components/ApiInfo/ApiInfo.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/ApiInfo/ApiInfo.tsx b/src/components/ApiInfo/ApiInfo.tsx index e1fcaaea..fe595811 100644 --- a/src/components/ApiInfo/ApiInfo.tsx +++ b/src/components/ApiInfo/ApiInfo.tsx @@ -70,12 +70,18 @@ export class ApiInfo extends React.Component { )) || null; + const version = + (info.version && ( + ({info.version}) + )) || + null; + return (
- {info.title} ({info.version}) + {info.title} {version} {!hideDownloadButton && (