mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Prevent NPE
This commit is contained in:
@@ -104,7 +104,12 @@ export class Lightbox extends React.Component<Props, {}> {
|
||||
};
|
||||
|
||||
private onClose = () => {
|
||||
this.props.close();
|
||||
const { close } = this.props;
|
||||
if (!close) {
|
||||
return;
|
||||
}
|
||||
|
||||
close();
|
||||
};
|
||||
|
||||
private onKeyUp = (event: KeyboardEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user