Fix left pane draft display and GV2 typing indicators
This commit is contained in:
parent
ab89c6c704
commit
18c71b291c
5 changed files with 58 additions and 31 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue