fix: resolve lightbox photo loading issue and fix lint error in vitest.setup.ts
This commit is contained in:
@@ -175,8 +175,8 @@ export function Lightbox({ assets, currentIndex, onClose, onNext, onPrev }: Ligh
|
||||
src={current.previewUrl}
|
||||
alt=""
|
||||
draggable={false}
|
||||
crossOrigin="anonymous"
|
||||
onLoad={() => setImageLoaded(true)}
|
||||
onError={() => console.error(`[Lightbox] Failed to load image: ${current.previewUrl}`)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { vi } from 'vitest';
|
||||
|
||||
// Set mandatory environment variables for all tests
|
||||
process.env.IMMICH_API_URL = 'http://immich.test';
|
||||
process.env.IMMICH_API_KEY = 'test-key';
|
||||
|
||||
Reference in New Issue
Block a user