We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c51eb2e commit 66a7341Copy full SHA for 66a7341
1 file changed
components/toolbar.tsx
@@ -38,7 +38,6 @@ const Toolbar = ({ initialData, preview }: ToolbarProps) => {
38
_id: initialData._id,
39
title: value || 'Untitled',
40
})
41
- // FIXME: how to show data directly in the UI when we didn't fetch it.
42
const newDocument = response.data
43
onSetDocument(newDocument)
44
}
@@ -122,7 +121,7 @@ const Toolbar = ({ initialData, preview }: ToolbarProps) => {
122
121
<div
123
onClick={enableInput}
124
className="break-words pb-[11.5px] text-5xl font-bold text-[#3F3F3F] outline-none dark:text-[#CFCFCF]">
125
- {initialData.title}
+ {value}
126
</div>
127
)}
128
0 commit comments