fix(library): a folder that is not connected is not a file that was moved
This commit is contained in:
@@ -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)}`);
|
||||
|
||||
Reference in New Issue
Block a user