mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-12-12 20:36:29 +01:00
Sentry fix: Avoid throwing when reporting an error in the editing session
This commit is contained in:
@@ -106,7 +106,7 @@ function hotwireDraftBodyState(draft: any, session: DraftEditingSession): Messag
|
||||
// equivalent document of the same shape.
|
||||
AppEnv.reportError(new Error(`Unable to insert fragment into existing document.`), {
|
||||
underlyingError: err,
|
||||
existingSlateShape: convertToShapeWithoutContent(session._mountedEditor.value),
|
||||
existingSlateShape: session._mountedEditor ? convertToShapeWithoutContent(session._mountedEditor.value) : null,
|
||||
incomingSlateShape: convertToShapeWithoutContent(inHTMLEditorValue),
|
||||
});
|
||||
_bodyEditorValue = inHTMLEditorValue;
|
||||
|
||||
Reference in New Issue
Block a user