mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-18 19:54:44 -04:00
Fixed: Selected value for empty root folder inputs
This commit is contained in:
parent
8485fc8c75
commit
40f41847fd
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@ function RootFolderSelectInputSelectedValue({
|
|||
...otherProps
|
||||
}: RootFolderSelectInputSelectedValueProps) {
|
||||
const slashCharacter = isWindows ? '\\' : '/';
|
||||
const { value, freeSpace, isMissing } = values.find(
|
||||
(v) => v.key === selectedValue
|
||||
) as RootFolderSelectInputValue;
|
||||
const { value, freeSpace, isMissing } =
|
||||
values.find((v) => v.key === selectedValue) ||
|
||||
({} as RootFolderSelectInputValue);
|
||||
|
||||
return (
|
||||
<EnhancedSelectInputSelectedValue
|
||||
|
|
Loading…
Add table
Reference in a new issue