🔧 Fixes to fix the way rawFileDetails object is accessed
This commit is contained in:
@@ -162,6 +162,8 @@ services:
|
||||
redis:
|
||||
image: 'bitnami/redis:latest'
|
||||
container_name: queue
|
||||
environment:
|
||||
ALLOW_EMPTY_PASSWORD: "yes"
|
||||
networks:
|
||||
- proxy
|
||||
ports:
|
||||
|
||||
@@ -90,6 +90,7 @@ export const getComicBooks = (options) => async (dispatch) => {
|
||||
},
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
dispatch({
|
||||
type: IMS_RECENT_COMICS_FETCHED,
|
||||
data: response.data,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user