chore: object shorthand linting rule ()

chore: object shorthand
This commit is contained in:
Jason Rasmussen 2024-08-30 14:38:53 -04:00 committed by GitHub
parent 40854f358c
commit 5e6ac87eaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 30 additions and 28 deletions
web/src/lib/utils

View file

@ -52,7 +52,7 @@ export const addAssetsToAlbum = async (albumId: string, assetIds: string[], show
timeout: 5000,
message:
count > 0
? $t('assets_added_to_album_count', { values: { count: count } })
? $t('assets_added_to_album_count', { values: { count } })
: $t('assets_were_part_of_album_count', { values: { count: assetIds.length } }),
button: {
text: $t('view_album'),
@ -264,7 +264,7 @@ export const downloadFile = async (asset: AssetResponseDto) => {
downloadBlob(data, filename);
} catch (error) {
handleError(error, $t('errors.error_downloading', { values: { filename: filename } }));
handleError(error, $t('errors.error_downloading', { values: { filename } }));
downloadManager.clear(downloadKey);
} finally {
setTimeout(() => downloadManager.clear(downloadKey), 5000);