Don't bother confirming exit if there's no content

This commit is contained in:
Toby Zerner
2015-05-14 22:13:18 +09:30
parent 9328277961
commit 2c0b87f8c2

View File

@ -41,7 +41,7 @@ export default class ComposerBody extends Component {
}
preventExit() {
return this.content() != this.props.originalContent && !confirm(this.props.confirmExit);
return this.content() && this.content() != this.props.originalContent && !confirm(this.props.confirmExit);
}
onsubmit(value) {