fix(Sidebar/Title): return null if title is not provided

This commit is contained in:
Aminejv 2022-01-19 15:56:38 +01:00
parent 985b47147b
commit 8562bd2ab6

View File

@ -38,6 +38,8 @@ function Title({ page, data }) {
if (page.id === "NAV_DATA") return "My library";
if (page.id === "NAV_SLATE" && data?.slatename) return "# " + data?.slatename;
if (page.id === "NAV_PROFILE") return "@ " + data.username;
return null;
}, [page, data, isFetchingResults, isSearching]);
return typeof title === "string" ? (