Add missing error message on settings change error

This commit is contained in:
schroda
2024-09-26 12:51:46 +02:00
parent 314ad39ee0
commit c72cf9a0ab
5 changed files with 18 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ export const DownloadAheadSetting = ({
const updateSetting = (value: MetadataDownloadSettings['downloadAheadLimit']) => {
persistDownloadAheadLimit(value === 0 ? currentDownloadAheadLimit : value);
updateMetadataServerSettings('downloadAheadLimit', value).catch(() =>
makeToast(t('search.error.label.failed_to_save_settings'), 'warning'),
makeToast(t('global.error.label.failed_to_save_changes'), 'error'),
);
};