mirror of
https://github.com/zoriya/flood.git
synced 2026-05-29 18:04:10 +00:00
FilesystemBrowserTextbox: use || to take empty string into account
This commit is contained in:
@@ -35,9 +35,9 @@ const FilesystemBrowserTextbox = forwardRef<HTMLInputElement, FilesystemBrowserT
|
||||
ref,
|
||||
) => {
|
||||
const [destination, setDestination] = useState<string>(
|
||||
suggested ??
|
||||
SettingStore.floodSettings.torrentDestinations?.[''] ??
|
||||
SettingStore.clientSettings?.directoryDefault ??
|
||||
suggested ||
|
||||
SettingStore.floodSettings.torrentDestinations?.[''] ||
|
||||
SettingStore.clientSettings?.directoryDefault ||
|
||||
'',
|
||||
);
|
||||
const [isDirectoryListOpen, setIsDirectoryListOpen] = useState<boolean>(false);
|
||||
|
||||
Reference in New Issue
Block a user