mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed [Object] appearing in Sentry log for unsaved-changes reason diff
ref https://linear.app/tryghost/issue/ENG-661
This commit is contained in:
parent
618d0b130a
commit
48b1b7d504
1 changed files with 1 additions and 1 deletions
|
@ -1178,7 +1178,7 @@ export default class LexicalEditorController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't push full lexical state to Sentry, it's too large, gets filtered often and not useful
|
// don't push full lexical state to Sentry, it's too large, gets filtered often and not useful
|
||||||
const sentryContext = {...this._leaveModalReason.context, secondaryLexical: undefined, scratch: undefined, lexical: undefined};
|
const sentryContext = {...this._leaveModalReason.context, diff: JSON.stringify(this._leaveModalReason.context?.diff), secondaryLexical: undefined, scratch: undefined, lexical: undefined};
|
||||||
Sentry.captureMessage('showing leave editor modal', {extra: {...this._leaveModalReason, context: sentryContext}});
|
Sentry.captureMessage('showing leave editor modal', {extra: {...this._leaveModalReason, context: sentryContext}});
|
||||||
|
|
||||||
console.log('showing leave editor modal', this._leaveModalReason); // eslint-disable-line
|
console.log('showing leave editor modal', this._leaveModalReason); // eslint-disable-line
|
||||||
|
|
Loading…
Add table
Reference in a new issue