diff --git a/src/client/components/ComicDetail/Tabs/ArchiveOperations.tsx b/src/client/components/ComicDetail/Tabs/ArchiveOperations.tsx index 8b446ad..52e3850 100644 --- a/src/client/components/ComicDetail/Tabs/ArchiveOperations.tsx +++ b/src/client/components/ComicDetail/Tabs/ArchiveOperations.tsx @@ -30,7 +30,7 @@ export const ArchiveOperations = (props): ReactElement => { const [imageAnalysisResult, setImageAnalysisResult] = useState({}); const constructImagePaths = (data): Array => { return data?.map((path: string) => - encodeURI(`${LIBRARY_SERVICE_HOST}/${path}`), + encodeURIComponent(`${LIBRARY_SERVICE_HOST}/${path}`), ); }; diff --git a/src/client/components/Dashboard/Dashboard.tsx b/src/client/components/Dashboard/Dashboard.tsx index 15caac8..8278571 100644 --- a/src/client/components/Dashboard/Dashboard.tsx +++ b/src/client/components/Dashboard/Dashboard.tsx @@ -151,7 +151,7 @@ export const Dashboard = (): ReactElement => { {/* Uncompressed status */} - {rawFileDetails.archive.uncompressed ? ( + {rawFileDetails?.archive?.uncompressed ? (