feat: remove unnecessary userPreferences findOne

This commit is contained in:
Zamitto
2025-01-05 12:28:33 -03:00
parent 52f85517bf
commit 39572702a0
4 changed files with 6 additions and 14 deletions

View File

@@ -98,9 +98,7 @@ export function DownloadSettingsModal({
? Downloader.RealDebrid
: filteredDownloaders[0];
setSelectedDownloader(
selectedDownloader === undefined ? null : selectedDownloader
);
setSelectedDownloader(selectedDownloader ?? null);
}, [
userPreferences?.downloadsPath,
downloaders,