From 2130a2a3e1d73156556f2e0b3847ab0dc6337e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dro=C5=84?= Date: Fri, 15 Apr 2022 16:33:01 +0200 Subject: [PATCH] Fix richTextcase in prepareAttributeInput (#1994) --- src/attributes/utils/handlers.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/attributes/utils/handlers.ts b/src/attributes/utils/handlers.ts index 1e148b042..8304e4f50 100644 --- a/src/attributes/utils/handlers.ts +++ b/src/attributes/utils/handlers.ts @@ -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;