mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-10 23:15:00 +08:00
fix(mail-merge): Pass session to injected subject
This commit is contained in:
parent
69b7bb2e23
commit
99f8a81e96
1 changed files with 2 additions and 1 deletions
|
@ -193,7 +193,7 @@ export default class ComposerHeader extends React.Component {
|
|||
if (!this.state.enabledFields.includes(Fields.Subject)) {
|
||||
return false;
|
||||
}
|
||||
const {draft} = this.props
|
||||
const {draft, session} = this.props
|
||||
return (
|
||||
<InjectedComponent
|
||||
ref={Fields.Subject}
|
||||
|
@ -201,6 +201,7 @@ export default class ComposerHeader extends React.Component {
|
|||
matching={{role: 'Composer:SubjectTextField'}}
|
||||
exposedProps={{
|
||||
draft,
|
||||
session,
|
||||
value: draft.subject,
|
||||
draftClientId: draft.clientId,
|
||||
onSubjectChange: this._onSubjectChange,
|
||||
|
|
Loading…
Reference in a new issue