diff --git a/src/config/constants/sidebarNavs.tsx b/src/config/constants/sidebarNavs.tsx
index 32570bc..ebe8d2a 100644
--- a/src/config/constants/sidebarNavs.tsx
+++ b/src/config/constants/sidebarNavs.tsx
@@ -1,11 +1,11 @@
import { GalleryHorizontal, GalleryVerticalEnd, Image as ImageIcon, MapPin, MapPinX, Rewind, Search, User } from "lucide-react";
export const sidebarNavs = [
- {
- title: "Rewind 2024",
- link: "/rewind",
- icon: ,
- },
+ // {
+ // title: "Rewind 2024",
+ // link: "/rewind",
+ // icon: ,
+ // },
{
title: "Find Assets",
link: "/find",
diff --git a/src/lib/api.ts b/src/lib/api.ts
index eee6dd2..0bf6edf 100644
--- a/src/lib/api.ts
+++ b/src/lib/api.ts
@@ -19,7 +19,6 @@ export class APIError extends Error {
}
const handleErrors = (error: AxiosError | any) => {
-
let errorObject = {}
if (error.response && error.response.data) {
return Promise.reject({
diff --git a/src/pages/albums/potential-albums.tsx b/src/pages/albums/potential-albums.tsx
index 120cc51..322559a 100644
--- a/src/pages/albums/potential-albums.tsx
+++ b/src/pages/albums/potential-albums.tsx
@@ -79,6 +79,8 @@ export default function PotentialAlbums() {
});
const newAssets = contextState.assets.filter(a => !contextState.selectedIds.includes(a.id));
updateContext({ selectedIds: [], assets: newAssets });
+ }).catch((error) => {
+ console.log("Error", error);
})
}
diff --git a/src/pages/api/immich-proxy/[...path].ts b/src/pages/api/immich-proxy/[...path].ts
index 95afe27..3beaf92 100644
--- a/src/pages/api/immich-proxy/[...path].ts
+++ b/src/pages/api/immich-proxy/[...path].ts
@@ -28,9 +28,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
res.setHeader(key, value)
})
- // Stream the response body
- const reader = response.body?.getReader()
- if (reader) {
+ // Only stream the response body if it exists and has content
+ if (response.body) {
+ const reader = response.body.getReader()
while (true) {
const { done, value } = await reader.read()
if (done) break