Fixed: Log event modal doesn't close

Fixes #239
pull/250/head
Qstick 7 years ago
parent ef0590728f
commit 9d056006cc

@ -42,7 +42,10 @@ class LogsTableRow extends Component {
// Listeners // Listeners
onPress = () => { onPress = () => {
this.setState({ isDetailsModalOpen: true }); // Don't re-open the modal if it's already open
if (!this.state.isDetailsModalOpen) {
this.setState({ isDetailsModalOpen: true });
}
} }
onModalClose = () => { onModalClose = () => {
@ -63,7 +66,9 @@ class LogsTableRow extends Component {
} = this.props; } = this.props;
return ( return (
<TableRowButton onPress={this.onPress}> <TableRowButton
onPress={this.onPress}
>
{ {
columns.map((column) => { columns.map((column) => {
const { const {

Loading…
Cancel
Save