From be256482a44ddc8bcce91cb8fdeb7a2f44056437 Mon Sep 17 00:00:00 2001 From: David Howell Date: Tue, 17 Oct 2017 15:11:31 +1030 Subject: [PATCH] Fix syntax error and use internal event handler instead of duplicating it --- app/internal_packages/composer/lib/composer-view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/internal_packages/composer/lib/composer-view.jsx b/app/internal_packages/composer/lib/composer-view.jsx index 6db3c506c..f8678d336 100644 --- a/app/internal_packages/composer/lib/composer-view.jsx +++ b/app/internal_packages/composer/lib/composer-view.jsx @@ -102,7 +102,7 @@ export default class ComposerView extends React.Component { 'composer:show-and-focus-cc': () => this._els.header.showAndFocusField(Fields.Cc), 'composer:focus-to': () => this._els.header.showAndFocusField(Fields.To), 'composer:show-and-focus-from': () => {}, - 'composer:select-attachment': () => Actions.selectAttachment({ headerMessageId: this.props.draft.headerMessageId });, + 'composer:select-attachment': () => this._onSelectAttachment(), 'core:undo': event => { event.preventDefault(); event.stopPropagation();