0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05:00

fix(server): check updateLibraryIndex for zero (#16585)

* fix(server): check updateLibraryIndex for zero

* Update web/src/routes/admin/library-management/+page.svelte

---------

Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
Jonathan Jogenfors 2025-03-04 21:00:10 +01:00 committed by GitHub
parent 63c01b78e2
commit 4ada28ac99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,7 +121,7 @@
};
const handleAddImportPath = () => {
if (updateLibraryIndex === null || !importPathToAdd) {
if ((updateLibraryIndex !== 0 && !updateLibraryIndex) || !importPathToAdd) {
return;
}