Skip to content

Commit 20d60bf

Browse files
committed
fix history viewing
1 parent c49d27f commit 20d60bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/x/apps/renderer/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3030,7 +3030,7 @@ function App() {
30303030
>
30313031
<MarkdownEditor
30323032
content={tabContent}
3033-
onChange={(markdown) => handleEditorChange(tab.path, markdown)}
3033+
onChange={(markdown) => { if (!isViewingHistory) handleEditorChange(tab.path, markdown) }}
30343034
placeholder="Start writing..."
30353035
wikiLinks={wikiLinkConfig}
30363036
onImageUpload={handleImageUpload}

0 commit comments

Comments
 (0)