editor: prevent edge case error

This commit is contained in:
jean-emmanuel 2022-10-05 20:40:20 +02:00
parent 3b695509e9
commit 796ee2fdc6

View file

@ -389,7 +389,7 @@ class Editor {
} else if (e.key === 'ArrowRight') {
if (!curWidget.children[0]._not_editable) {
if (curWidget.children[0] && !curWidget.children[0]._not_editable) {
toSelect = curWidget.children[0]
}