diff --git a/src/common/components/ContentEditable.tsx b/src/common/components/ContentEditable.tsx index 1f61fde..8a79cc4 100644 --- a/src/common/components/ContentEditable.tsx +++ b/src/common/components/ContentEditable.tsx @@ -98,7 +98,6 @@ export const ContentEditable = ({ value, onInput, ...props }: Props) => {
{ } const handleInput = (e: Event) => { - const text = (e.target as HTMLElement).textContent; + const text = (e.target as HTMLElement).textContent || ''; dispatch({ type: 'EDIT_STORY', id: currentStory.id,