From c08c4531db311bad2f99b2e250e243c2cfbfca83 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 5 Jan 2021 14:24:25 +0100 Subject: [PATCH] fix empty range items handling --- src/public/app/widgets/type_widgets/editable_text.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.js index 557237d18..9ea09e48d 100644 --- a/src/public/app/widgets/type_widgets/editable_text.js +++ b/src/public/app/widgets/type_widgets/editable_text.js @@ -238,7 +238,9 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget { let text = ''; for (const item of range.getItems()) { - text += item.data; + if (item.data) { + text += item.data; + } } return text;