fix: resolve lightbox photo loading issue and fix lint error in vitest.setup.ts

This commit is contained in:
ralksta
2026-03-07 10:09:26 +01:00
parent c8116242f0
commit 4370603a6e
2 changed files with 1 additions and 3 deletions

View File

@@ -175,8 +175,8 @@ export function Lightbox({ assets, currentIndex, onClose, onNext, onPrev }: Ligh
src={current.previewUrl} src={current.previewUrl}
alt="" alt=""
draggable={false} draggable={false}
crossOrigin="anonymous"
onLoad={() => setImageLoaded(true)} onLoad={() => setImageLoaded(true)}
onError={() => console.error(`[Lightbox] Failed to load image: ${current.previewUrl}`)}
/> />
</div> </div>

View File

@@ -1,5 +1,3 @@
import { vi } from 'vitest';
// Set mandatory environment variables for all tests // Set mandatory environment variables for all tests
process.env.IMMICH_API_URL = 'http://immich.test'; process.env.IMMICH_API_URL = 'http://immich.test';
process.env.IMMICH_API_KEY = 'test-key'; process.env.IMMICH_API_KEY = 'test-key';