refactor: code cleanup

This commit is contained in:
Prayag Prajapati committed 2024-09-27 10:57:57 +05:30
1 parent 8038680683
commit bf9ba21f39
6 files changed
+52 -49

No files matched your search

+5 -1
View File
@@ -47,6 +47,7 @@ function ListItemLink(props: ListItemLinkProps) {
return (
<li>
{/* @ts-ignore */}
<ListItem
component={Link}
activeClassName="active"
@@ -276,7 +277,10 @@ export const AppBar = () => {
<ListItemLink
key={library.Id}
to={`/library/${library.Id}`}
icon={getTypeIcon(library.CollectionType)}
icon={
library.CollectionType &&
getTypeIcon(library.CollectionType)
}
primary={library.Name ?? "Library"}
/>
))}