Fix richTextcase in prepareAttributeInput (#1994)
This commit is contained in:
parent
0f237ad2e7
commit
2130a2a3e1
1 changed files with 9 additions and 1 deletions
|
@ -220,7 +220,15 @@ export const prepareAttributesInput = ({
|
|||
attrInput.push(booleanInput);
|
||||
return attrInput;
|
||||
}
|
||||
// for cases other than rich text and boolean
|
||||
if (inputType === AttributeInputTypeEnum.RICH_TEXT) {
|
||||
attrInput.push({
|
||||
id: attr.id,
|
||||
richText: attr.value[0]
|
||||
});
|
||||
return attrInput;
|
||||
}
|
||||
|
||||
// for cases other than rich text, boolean and file
|
||||
// we can skip attribute
|
||||
if (!attr.value[0]) {
|
||||
return attrInput;
|
||||
|
|
Loading…
Reference in a new issue