🔧 Fixed publisher name in Library table

This commit is contained in:
2022-08-17 22:25:48 -07:00
parent ea366d1888
commit 5f59456c8b
3 changed files with 10 additions and 5 deletions

View File

@@ -99,12 +99,12 @@ export const Library = (data: IComicBookLibraryProps): ReactElement => {
{ {
header: "Publisher", header: "Publisher",
accessorKey: accessorKey:
"_source.sourcedMetadata.comicvine.volumeInformation.publisher", "_source.sourcedMetadata.comicvine.volumeInformation",
cell: info => { cell: info => {
return ( return (
!isNil(info.getValue()) && ( !isNil(info.getValue()) && (
<h6 className="is-size-7 has-text-weight-bold"> <h6 className="is-size-7 has-text-weight-bold">
{info.getValue().rawFileDetails.name} { info.getValue().publisher.name }
</h6> </h6>
) )
); );

View File

@@ -68,8 +68,14 @@ export const WantedComics = (props): ReactElement => {
}, },
}, },
{ {
header: "Type", header: "Download Details",
id: "Air", id: "downloadDetails",
accessorKey: "acquisition",
cell: data => <ol>
{data.getValue().directconnect.downloads.map(download => {
return <li className="is-size-7">{download.name}</li>;
})}
</ol>
}, },
{ {
header: "Type", header: "Type",

View File

@@ -16,7 +16,6 @@ interface IMetadatPanelProps {
containerStyle: any; containerStyle: any;
} }
export const MetadataPanel = (props: IMetadatPanelProps): ReactElement => { export const MetadataPanel = (props: IMetadatPanelProps): ReactElement => {
console.log(props)
const { const {
rawFileDetails, rawFileDetails,
inferredMetadata, inferredMetadata,