web: fix crash on viewing a merge conflict

This commit is contained in:
Abdullah Atta
2023-06-17 16:36:51 +05:00
committed by Abdullah Atta
parent 8d2c0762db
commit cdbca8ac22
2 changed files with 4 additions and 3 deletions

View File

@@ -66,7 +66,8 @@ function ContentToggle(props) {
sx={{
fontSize: "subBody",
color: "fontTertiary",
alignItems: "center"
alignItems: "center",
fontFamily: "body"
}}
>
{label} | {getFormattedDate(dateEdited)}

View File

@@ -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 }}
/>