fix(xo-web/import/disk): can't change file name when importing from URL (#7332)

Fixes [#7326](https://github.com/vatesfr/xen-orchestra/issues/7326)
This commit is contained in:
MlssFrncJrg
2024-01-30 15:04:27 +01:00
committed by GitHub
parent 2e6f7d35ef
commit 6084db22a9
2 changed files with 4 additions and 4 deletions

View File

@@ -12,6 +12,7 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Pool/Advanced] Show pool backup/migration network even if they no longer exist (PR [#7303](https://github.com/vatesfr/xen-orchestra/pull/7303))
- [Import/disk] Couldn't update 'name' field when importing from a URL [#7326](https://github.com/vatesfr/xen-orchestra/issues/7326) (PR [#7332](https://github.com/vatesfr/xen-orchestra/pull/7332))
### Packages to release

View File

@@ -129,10 +129,9 @@ const DiskImport = decorate([
onChangeFileType: (_, fileType) => ({ fileType }),
onChangeName:
(_, { target: { name, value } }) =>
({ mapNames }) => {
mapNames[name] = value
return { mapNames }
},
({ mapNames }) => ({
mapNames: { ...mapNames, [name]: value },
}),
onChangeSr: (_, sr) => ({ sr }),
onChangeUrl:
(_, { target: { value } }) =>