Skip to content

Commit

Permalink
[#134] fix: children이 없는 경우 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
domino8788 committed Dec 17, 2020
1 parent 6495e05 commit 5ef7998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function PageComponent(): JSX.Element {
});

const createBlockHandler = async () => {
if (children[children.length - 1].value === '') {
if (children[children.length - 1]?.value === '') {
setFocus(children[children.length - 1]);
return;
}
Expand Down

0 comments on commit 5ef7998

Please sign in to comment.