🍬 Removed hardcoded reference to import-service
TODO: Remove the repetitive use of thumbnail generating logic
This commit is contained in:
@@ -15,6 +15,7 @@ import Masonry from "react-masonry-css";
|
||||
import Card from "./Carda";
|
||||
import { detectIssueTypes } from "../shared/utils/tradepaperback.utils";
|
||||
import { Link } from "react-router-dom";
|
||||
import { IMPORT_SERVICE_HOST } from "../constants/endpoints";
|
||||
|
||||
|
||||
interface ILibraryGridProps {}
|
||||
@@ -47,7 +48,7 @@ export const LibraryGrid = (libraryGridProps: ILibraryGridProps) => {
|
||||
let comicName = "";
|
||||
if (!isNil(rawFileDetails)) {
|
||||
const encodedFilePath = encodeURI(
|
||||
"http://localhost:3000" +
|
||||
`${IMPORT_SERVICE_HOST}` +
|
||||
removeLeadingPeriod(rawFileDetails.cover.filePath),
|
||||
);
|
||||
imagePath = escapePoundSymbol(encodedFilePath);
|
||||
|
||||
Reference in New Issue
Block a user