mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-11 07:19:49 -06:00
fix empty range items handling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user