fix(rclone-volume): remote was not loaded correctly in the form
This commit is contained in:
parent
54d077bf43
commit
affd300a09
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ const defaultValuesForType = {
|
|||
nfs: { backend: "nfs" as const, port: 2049, version: "4.1" as const },
|
||||
smb: { backend: "smb" as const, port: 445, vers: "3.0" as const },
|
||||
webdav: { backend: "webdav" as const, port: 80, ssl: false },
|
||||
rclone: { backend: "rclone" as const, remote: "", path: "" },
|
||||
rclone: { backend: "rclone" as const },
|
||||
};
|
||||
|
||||
export const CreateVolumeForm = ({ onSubmit, mode = "create", initialValues, formId, loading, className }: Props) => {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ export const RcloneForm = ({ form }: Props) => {
|
|||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Remote</FormLabel>
|
||||
<Select onValueChange={(v) => field.onChange(v)}>
|
||||
<Select onValueChange={(v) => field.onChange(v)} value={field.value}>
|
||||
<FormControl>
|
||||
<SelectTrigger>
|
||||
<SelectValue placeholder="Select an rclone remote" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue