From cdbe39c0c75bd57a5f57f1dd4a051eac4f29968b Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Sun, 31 Oct 2021 17:33:25 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fixes=20to=20fix=20the=20way=20r?= =?UTF-8?q?awFileDetails=20object=20is=20accessed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 ++ src/client/actions/fileops.actions.tsx | 1 + src/client/components/ComicDetail.tsx | 2 +- src/client/components/RecentlyImported.tsx | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3ee8332..9735d82 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -162,6 +162,8 @@ services: redis: image: 'bitnami/redis:latest' container_name: queue + environment: + ALLOW_EMPTY_PASSWORD: "yes" networks: - proxy ports: diff --git a/src/client/actions/fileops.actions.tsx b/src/client/actions/fileops.actions.tsx index 101fcd3..be81fba 100644 --- a/src/client/actions/fileops.actions.tsx +++ b/src/client/actions/fileops.actions.tsx @@ -90,6 +90,7 @@ export const getComicBooks = (options) => async (dispatch) => { }, }) .then((response) => { + console.log(response); dispatch({ type: IMS_RECENT_COMICS_FETCHED, data: response.data, diff --git a/src/client/components/ComicDetail.tsx b/src/client/components/ComicDetail.tsx index bd7fbc8..fb15f65 100644 --- a/src/client/components/ComicDetail.tsx +++ b/src/client/components/ComicDetail.tsx @@ -467,7 +467,7 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => { if (!isNil(comicBookDetailData.rawFileDetails)) { const encodedFilePath = encodeURI( `${IMPORT_SERVICE_HOST}` + - removeLeadingPeriod(comicBookDetailData.rawFileDetails.cover.filePath), + removeLeadingPeriod(comicBookDetailData.rawFileDetails.path), ); imagePath = escapePoundSymbol(encodedFilePath); comicBookTitle = comicBookDetailData.rawFileDetails.name; diff --git a/src/client/components/RecentlyImported.tsx b/src/client/components/RecentlyImported.tsx index 6f890f9..8422dea 100644 --- a/src/client/components/RecentlyImported.tsx +++ b/src/client/components/RecentlyImported.tsx @@ -39,10 +39,11 @@ export const RecentlyImported = ({ ({ _id, rawFileDetails, sourcedMetadata }) => { let imagePath = ""; let comicName = ""; + console.log(rawFileDetails); if (!isNil(rawFileDetails)) { const encodedFilePath = encodeURI( `${IMPORT_SERVICE_HOST}` + - removeLeadingPeriod(rawFileDetails.cover.filePath), + removeLeadingPeriod(rawFileDetails.path), ); imagePath = escapePoundSymbol(encodedFilePath); comicName = rawFileDetails.name;