diff --git a/api/routers/notes.py b/api/routers/notes.py index 4935057..ddc8f15 100644 --- a/api/routers/notes.py +++ b/api/routers/notes.py @@ -96,7 +96,7 @@ async def create_note(note_data: NoteCreate): note_type=new_note.note_type, created=str(new_note.created), updated=str(new_note.updated), - command_id=command_id, + command_id=str(command_id) if command_id else None, ) except HTTPException: raise @@ -160,7 +160,7 @@ async def update_note(note_id: str, note_update: NoteUpdate): note_type=note.note_type, created=str(note.created), updated=str(note.updated), - command_id=command_id, + command_id=str(command_id) if command_id else None, ) except HTTPException: raise diff --git a/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx b/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx index b787ebe..89604e0 100644 --- a/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx +++ b/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx @@ -126,7 +126,7 @@ export function NoteEditorDialog({ open, onOpenChange, notebookId, note }: NoteE {isEditing ? t.sources.editNote : t.sources.createNote} -
+ {isEditing && noteLoading ? (
{t.common.loading} diff --git a/frontend/src/components/common/InlineEdit.tsx b/frontend/src/components/common/InlineEdit.tsx index b5acb4a..d1677ce 100644 --- a/frontend/src/components/common/InlineEdit.tsx +++ b/frontend/src/components/common/InlineEdit.tsx @@ -87,7 +87,7 @@ export function InlineEdit({