🚛 Massive refactor of dashboard

This commit is contained in:
2022-05-23 22:01:51 -07:00
parent f0505d7428
commit d80c672cd1
18 changed files with 127 additions and 77 deletions

View File

@@ -91,7 +91,10 @@ export const Library = (data: IComicBookLibraryProps): ReactElement => {
: row._source.sourcedMetadata,
Cell: ({ value }) => {
// If no CV info available, use raw file metadata
if (!isUndefined(value.rawFileDetails)) {
if (
!isUndefined(value.rawFileDetails) &&
!isEmpty(value.rawFileDetails.cover)
) {
return <RawFileDetails data={value} />;
}
// If CV metadata available, show it
@@ -134,7 +137,7 @@ export const Library = (data: IComicBookLibraryProps): ReactElement => {
},
{
Header: "Something",
accessor: "_source.acquisition.wanted",
accessor: "_source.acquisition.source.wanted",
Cell: (props) => {
return <WantedStatus value={props.cell.value.toString()} />;
},