Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Dec 22, 2024
1 parent 761d23f commit baeb980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(main)/_components/SideBarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const SidebarItem: React.FC<SidebarItemProps> = ({ 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);
Expand Down

0 comments on commit baeb980

Please sign in to comment.