From f3abc0700546a586ac86baa3dcb6ff3716fc1872 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Mon, 8 Jan 2024 13:45:05 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20Fix=20for=20encoding=20?= =?UTF-8?q?#=20in=20URIs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/ComicDetail/Tabs/ArchiveOperations.tsx | 2 +- src/client/components/Dashboard/Dashboard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ? (