fix(library): a folder that is not connected is not a file that was moved

This commit is contained in:
2026-10-11 12:00:18 +07:00
parent 1848f057fc
commit 02ee21678f
5 changed files with 386 additions and 894 deletions
+3 -2
View File
@@ -1269,8 +1269,9 @@ function Catalogue({ admin }: { admin: boolean }) {
// a studio that opens on nothing.
try {
await readPhotoFile(row);
} catch {
setNote(t('lib.missing', { name: row.name }));
} catch (err) {
const off = err instanceof Error && err.message === 'no-folder';
setNote(t(off ? 'lib.offline' : 'lib.missing', { name: row.name }));
return;
}
go(`/app?lib=${encodeURIComponent(photo.id)}`);