diff --git a/src/client/components/Library/Library.tsx b/src/client/components/Library/Library.tsx index b40101d..f9ca83f 100644 --- a/src/client/components/Library/Library.tsx +++ b/src/client/components/Library/Library.tsx @@ -54,7 +54,7 @@ export const Library = (data: IComicBookLibraryProps): ReactElement => { Header: "File Details", id: "fileDetails", accessor: (row) => - !isEmpty(row._source.rawFileDetails.cover) + !isEmpty(row._source.rawFileDetails) ? row._source.rawFileDetails : row._source.sourcedMetadata, Cell: ({ value }) => { @@ -77,16 +77,20 @@ export const Library = (data: IComicBookLibraryProps): ReactElement => { ], }, { - Header: "ComicVine Metadata", + Header: "Additional Metadata", columns: [ { Header: "Issue #", - accessor: "_source.sourcedMetadata", + accessor: "_source.inferredMetadata.issue", Cell(props) { return ( - !isUndefined(props.cell.value) && - !isUndefined(props.cell.value.comicvine) && ( -
{props.cell.value.comicvine.issue_number}
+ !isUndefined(props.cell.value) && ( +
+
+ Inferred + {props.cell.value.number} +
+
) ); },