diff --git a/components/Editor.tsx b/components/Editor.tsx index b2597c7..61d0a8d 100644 --- a/components/Editor.tsx +++ b/components/Editor.tsx @@ -364,6 +364,8 @@ const Editor = () => { event.preventDefault(); if (action === 'edit') { save(); + } else if (action === 'new') { + setModalVisible(true); } } };