mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-26 04:19:49 +03:00
fix(Sidebar/Title): return null if title is not provided
This commit is contained in:
parent
985b47147b
commit
8562bd2ab6
@ -38,6 +38,8 @@ function Title({ page, data }) {
|
|||||||
if (page.id === "NAV_DATA") return "My library";
|
if (page.id === "NAV_DATA") return "My library";
|
||||||
if (page.id === "NAV_SLATE" && data?.slatename) return "# " + data?.slatename;
|
if (page.id === "NAV_SLATE" && data?.slatename) return "# " + data?.slatename;
|
||||||
if (page.id === "NAV_PROFILE") return "@ " + data.username;
|
if (page.id === "NAV_PROFILE") return "@ " + data.username;
|
||||||
|
|
||||||
|
return null;
|
||||||
}, [page, data, isFetchingResults, isSearching]);
|
}, [page, data, isFetchingResults, isSearching]);
|
||||||
|
|
||||||
return typeof title === "string" ? (
|
return typeof title === "string" ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user