mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: fix crash on viewing a merge conflict
This commit is contained in:
committed by
Abdullah Atta
parent
8d2c0762db
commit
cdbca8ac22
@@ -66,7 +66,8 @@ function ContentToggle(props) {
|
||||
sx={{
|
||||
fontSize: "subBody",
|
||||
color: "fontTertiary",
|
||||
alignItems: "center"
|
||||
alignItems: "center",
|
||||
fontFamily: "body"
|
||||
}}
|
||||
>
|
||||
{label} | {getFormattedDate(dateEdited)}
|
||||
|
||||
@@ -238,7 +238,7 @@ function DiffViewer(props) {
|
||||
}}
|
||||
>
|
||||
<Editor
|
||||
content={htmlDiff.before}
|
||||
content={() => htmlDiff.before}
|
||||
nonce={0}
|
||||
options={{ readonly: true, headless: true }}
|
||||
/>
|
||||
@@ -282,7 +282,7 @@ function DiffViewer(props) {
|
||||
<ScrollSyncPane>
|
||||
<Flex sx={{ px: 2, overflow: "auto" }}>
|
||||
<Editor
|
||||
content={htmlDiff.after}
|
||||
content={() => htmlDiff.after}
|
||||
nonce={0}
|
||||
options={{ readonly: true, headless: true }}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user