From 11c9a53872ab2759bb7c00e16d85dca325090e85 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Sat, 2 Oct 2021 15:06:13 +0800 Subject: [PATCH] Fix 'pinnedUrl' error. Part of "6989 Fix console spam in dev" EXTRA_SIDEBAR_LINKS should be a `SideNavLink` object, so trim down the return object from `GetLinksData`. --- ui/component/sideNavigation/view.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index 408152b53..aa00ceec3 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -75,7 +75,8 @@ function SideNavigation(props: Props) { followedTags, } = props; - const EXTRA_SIDEBAR_LINKS = GetLinksData(homepageData); + const EXTRA_SIDEBAR_LINKS = GetLinksData(homepageData).map(({ pinnedUrls, ...theRest }) => theRest); + const FULL_LINKS: Array = [ { title: 'Your Tags',