Skip to content

Commit fb54609

Browse files
authored
Merge pull request #1879 from argos-ci/fix-diff-editor-error
fix(diff-editor): fix Monaco error
2 parents eb0dc78 + ce343a1 commit fb54609

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/frontend/src/containers/Build/DiffEditor.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export function DiffEditor(
4343
renderSideBySide: renderSideBySide,
4444
}}
4545
className="overflow-hidden rounded border"
46+
// @see https://github.com/suren-atoyan/monaco-react/issues/647#issuecomment-2897027817
47+
keepCurrentModifiedModel
48+
keepCurrentOriginalModel
4649
/>
4750
);
4851
}
@@ -54,6 +57,8 @@ export function Editor(props: Pick<EditorProps, "value" | "language">) {
5457
options={OPTIONS}
5558
loading={<SnapshotLoader />}
5659
className="overflow-hidden rounded border"
60+
// @see https://github.com/suren-atoyan/monaco-react/issues/647#issuecomment-2897027817
61+
keepCurrentModel
5762
/>
5863
);
5964
}

0 commit comments

Comments
 (0)