mirror of
https://github.com/Radarr/Radarr
synced 2026-01-19 14:02:40 +01: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…
Reference in a new issue