Fix left pane draft display and GV2 typing indicators

This commit is contained in:
Scott Nonnenberg 2020-11-03 16:16:20 -08:00 committed by GitHub
parent ab89c6c704
commit 18c71b291c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 31 deletions

View file

@ -422,8 +422,8 @@ export class Lightbox extends React.Component<Props, State> {
const { contentType } = this.props;
// These are the only image types supported by Electron's NativeImage
if (contentType !== 'image/png' && contentType !== 'image/jpg') {
event?.preventDefault();
if (event && contentType !== 'image/png' && contentType !== 'image/jpg') {
event.preventDefault();
}
};