🔧 Fixes to fix the way rawFileDetails object is accessed
This commit is contained in:
@@ -162,6 +162,8 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: 'bitnami/redis:latest'
|
image: 'bitnami/redis:latest'
|
||||||
container_name: queue
|
container_name: queue
|
||||||
|
environment:
|
||||||
|
ALLOW_EMPTY_PASSWORD: "yes"
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ export const getComicBooks = (options) => async (dispatch) => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
console.log(response);
|
||||||
dispatch({
|
dispatch({
|
||||||
type: IMS_RECENT_COMICS_FETCHED,
|
type: IMS_RECENT_COMICS_FETCHED,
|
||||||
data: response.data,
|
data: response.data,
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => {
|
|||||||
if (!isNil(comicBookDetailData.rawFileDetails)) {
|
if (!isNil(comicBookDetailData.rawFileDetails)) {
|
||||||
const encodedFilePath = encodeURI(
|
const encodedFilePath = encodeURI(
|
||||||
`${IMPORT_SERVICE_HOST}` +
|
`${IMPORT_SERVICE_HOST}` +
|
||||||
removeLeadingPeriod(comicBookDetailData.rawFileDetails.cover.filePath),
|
removeLeadingPeriod(comicBookDetailData.rawFileDetails.path),
|
||||||
);
|
);
|
||||||
imagePath = escapePoundSymbol(encodedFilePath);
|
imagePath = escapePoundSymbol(encodedFilePath);
|
||||||
comicBookTitle = comicBookDetailData.rawFileDetails.name;
|
comicBookTitle = comicBookDetailData.rawFileDetails.name;
|
||||||
|
|||||||
@@ -39,10 +39,11 @@ export const RecentlyImported = ({
|
|||||||
({ _id, rawFileDetails, sourcedMetadata }) => {
|
({ _id, rawFileDetails, sourcedMetadata }) => {
|
||||||
let imagePath = "";
|
let imagePath = "";
|
||||||
let comicName = "";
|
let comicName = "";
|
||||||
|
console.log(rawFileDetails);
|
||||||
if (!isNil(rawFileDetails)) {
|
if (!isNil(rawFileDetails)) {
|
||||||
const encodedFilePath = encodeURI(
|
const encodedFilePath = encodeURI(
|
||||||
`${IMPORT_SERVICE_HOST}` +
|
`${IMPORT_SERVICE_HOST}` +
|
||||||
removeLeadingPeriod(rawFileDetails.cover.filePath),
|
removeLeadingPeriod(rawFileDetails.path),
|
||||||
);
|
);
|
||||||
imagePath = escapePoundSymbol(encodedFilePath);
|
imagePath = escapePoundSymbol(encodedFilePath);
|
||||||
comicName = rawFileDetails.name;
|
comicName = rawFileDetails.name;
|
||||||
|
|||||||
Reference in New Issue
Block a user