mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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:
parent
63c01b78e2
commit
4ada28ac99
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleAddImportPath = () => {
|
const handleAddImportPath = () => {
|
||||||
if (updateLibraryIndex === null || !importPathToAdd) {
|
if ((updateLibraryIndex !== 0 && !updateLibraryIndex) || !importPathToAdd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue