From 008e130dceff679e69439959f4607ea57c339b47 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 11 Mar 2020 15:57:21 -0400 Subject: [PATCH] fix react error --- static/app-strings.json | 5 +++-- ui/component/sideNavigation/view.jsx | 13 ++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 586c57bff..7b21bec08 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1026,5 +1026,6 @@ "For video content, use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.": "For video content, use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.", "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.": "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.", "Your video has a bitrate over 6 mbps. We suggest transcoding to provide viewers the best experience.": "Your video has a bitrate over 6 mbps. We suggest transcoding to provide viewers the best experience.", - "Your video has a bitrate over 5 mbps. We suggest transcoding to provide viewers the best experience.": "Your video has a bitrate over 5 mbps. We suggest transcoding to provide viewers the best experience." -} + "Your video has a bitrate over 5 mbps. We suggest transcoding to provide viewers the best experience.": "Your video has a bitrate over 5 mbps. We suggest transcoding to provide viewers the best experience.", + "Almost there": "Almost there" +} \ No newline at end of file diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index b70f7ee05..6c269420a 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -116,11 +116,14 @@ function SideNavigation(props: Props) { ...buildLink(PAGES.LIBRARY, __('Library'), ICONS.LIBRARY), }, // @endif - ].map(linkProps => ( -
  • -
  • - ))} + ].map( + linkProps => + linkProps.navigate && ( +
  • +
  • + ) + )} {expanded && [