Fix product update with file attribute (#1190)
* Fix product update with file attribute * Update changelog * Fix optional chaining
This commit is contained in:
parent
88af20168b
commit
462723ec08
2 changed files with 3 additions and 2 deletions
|
@ -53,6 +53,7 @@ All notable, unreleased changes to this project will be documented in this file.
|
|||
- Fix product type translations - #1163 by @orzechdev
|
||||
- Support staff only voucher - #1174 by @orzechdev
|
||||
- Fix label names in reference attributes - #1184 by @orzechdev
|
||||
- Fix failing product update with file attribute - #1190 by @orzechdev
|
||||
|
||||
# 2.11.1
|
||||
|
||||
|
|
|
@ -192,8 +192,8 @@ function getFileInput(
|
|||
};
|
||||
}
|
||||
return {
|
||||
file: updatedFileAttribute.file,
|
||||
id: updatedFileAttribute.id
|
||||
file: attribute.data.selectedValues?.[0]?.file?.url,
|
||||
id: attribute.id
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue