[Desktop] Fix current library label (#656)

Fix current lib label
This commit is contained in:
nikec 2023-03-31 07:01:13 +02:00 committed by GitHub
parent b346e7ac52
commit 8584f23b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,12 +36,8 @@ export const Component = () => {
if (b.uuid === library.uuid) return 1;
return 0;
})
.map((library) => (
<ListItem
current={library.uuid === library.uuid}
key={library.uuid}
library={library}
/>
.map((lib) => (
<ListItem current={lib.uuid === library.uuid} key={lib.uuid} library={lib} />
))}
</div>
</>