Fix copy-paste error
parent
9aa4dd7a20
commit
9ca34b6edf
|
@ -196,7 +196,7 @@ export async function* deleteFilesByIds(fileIds: number[]) {
|
||||||
try {
|
try {
|
||||||
fileInfos = await getFiles(fileIds.filter(f => f));
|
fileInfos = await getFiles(fileIds.filter(f => f));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
showError(t('photos', 'Failed to delete files.'));
|
showError(t('memories', 'Failed to delete files.'));
|
||||||
console.error('Failed to get file info for files to delete', fileIds, e);
|
console.error('Failed to get file info for files to delete', fileIds, e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -208,8 +208,8 @@ export async function* deleteFilesByIds(fileIds: number[]) {
|
||||||
await deleteFile(fileInfo.filename);
|
await deleteFile(fileInfo.filename);
|
||||||
return fileInfo.fileid as number;
|
return fileInfo.fileid as number;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(t('photos', 'Failed to delete {fileName}.', fileInfo), error);
|
console.error(t('memories', 'Failed to delete {fileName}.', fileInfo), error);
|
||||||
showError(t('photos', 'Failed to delete {fileName}.', fileInfo));
|
showError(t('memories', 'Failed to delete {fileName}.', fileInfo));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue