Prevent NPE

pull/1/head
Daniel Gasienica 7 years ago
parent 96be0df8c7
commit 823a58f98a

@ -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) => {

Loading…
Cancel
Save