Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/notes/components/NotesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ export const NotesPanel = ({ projectId }: { projectId: number }) => {
<NoteEditor
projectId={projectId}
className="shadow"
onCreated={async () => {
onCreated={async (id) => {
// First create → switch to edit mode so the editor stays open
setCreating(false)
setEditingId(id)
await refetch()
}}
onSaved={async () => {
Expand Down