diff --git a/src/app/(main)/_components/SideBarItem.tsx b/src/app/(main)/_components/SideBarItem.tsx index c3c05e6..752aa78 100644 --- a/src/app/(main)/_components/SideBarItem.tsx +++ b/src/app/(main)/_components/SideBarItem.tsx @@ -68,7 +68,7 @@ const SidebarItem: React.FC = ({ selected, id, log, onLogClick const handleOutSideClick = () => { setIsEditing(false); if (logTitle !== log.title) { - const updatedLog = { ...log, title: logTitle, toFirestore: () => ({}) }; + const updatedLog = new Log({ ...log, title: logTitle }); logService.updateLogTitle(id, updatedLog); log.title = logTitle; setIsEditing(false);