Skip to content

Commit f7b806a

Browse files
authored
Merge pull request #25 from mlhiter/dev
fix: document title cannot update error
2 parents 170c5b5 + 66a7341 commit f7b806a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

components/toolbar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const Toolbar = ({ initialData, preview }: ToolbarProps) => {
3838
_id: initialData._id,
3939
title: value || 'Untitled',
4040
})
41-
// FIXME: how to show data directly in the UI when we didn't fetch it.
4241
const newDocument = response.data
4342
onSetDocument(newDocument)
4443
}
@@ -122,7 +121,7 @@ const Toolbar = ({ initialData, preview }: ToolbarProps) => {
122121
<div
123122
onClick={enableInput}
124123
className="break-words pb-[11.5px] text-5xl font-bold text-[#3F3F3F] outline-none dark:text-[#CFCFCF]">
125-
{initialData.title}
124+
{value}
126125
</div>
127126
)}
128127
</div>

0 commit comments

Comments
 (0)