mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: remove unnecessary userPreferences findOne
This commit is contained in:
parent
52f85517bf
commit
39572702a0
4 changed files with 6 additions and 14 deletions
|
|
@ -98,9 +98,7 @@ export function DownloadSettingsModal({
|
|||
? Downloader.RealDebrid
|
||||
: filteredDownloaders[0];
|
||||
|
||||
setSelectedDownloader(
|
||||
selectedDownloader === undefined ? null : selectedDownloader
|
||||
);
|
||||
setSelectedDownloader(selectedDownloader ?? null);
|
||||
}, [
|
||||
userPreferences?.downloadsPath,
|
||||
downloaders,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue