From 9d056006cc2819709d64f03c4accd1f67d942f8f Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 19 Mar 2018 21:03:02 -0400 Subject: [PATCH] Fixed: Log event modal doesn't close Fixes #239 --- frontend/src/System/Events/LogsTableRow.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/System/Events/LogsTableRow.js b/frontend/src/System/Events/LogsTableRow.js index 2d3e55038..d6751a5e5 100644 --- a/frontend/src/System/Events/LogsTableRow.js +++ b/frontend/src/System/Events/LogsTableRow.js @@ -42,7 +42,10 @@ class LogsTableRow extends Component { // Listeners 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 = () => { @@ -63,7 +66,9 @@ class LogsTableRow extends Component { } = this.props; return ( - + { columns.map((column) => { const {