aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/EventReportPage.jsx
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-24 16:02:48 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-24 16:02:48 -0800
commit8bd7cba6f5ce56bcccda1459cdd953b3add799d6 (patch)
treed133b5e57cee061fd49eeddcec35dc3b38254a6d /modern/src/reports/EventReportPage.jsx
parent3106f6ab617b23d6fb2587c3cde2b684abac2605 (diff)
downloadtrackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.gz
trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.bz2
trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.zip
Fix lint and issues
Diffstat (limited to 'modern/src/reports/EventReportPage.jsx')
-rw-r--r--modern/src/reports/EventReportPage.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/EventReportPage.jsx b/modern/src/reports/EventReportPage.jsx
index 10b539ab..5ffc8ac3 100644
--- a/modern/src/reports/EventReportPage.jsx
+++ b/modern/src/reports/EventReportPage.jsx
@@ -204,7 +204,7 @@ const EventReportPage = () => {
{!loading ? items.map((item) => (
<TableRow key={item.id}>
<TableCell className={classes.columnAction} padding="none">
- {item.positionId ? selectedItem === item ? (
+ {(item.positionId && (selectedItem === item ? (
<IconButton size="small" onClick={() => setSelectedItem(null)}>
<GpsFixedIcon fontSize="small" />
</IconButton>
@@ -212,7 +212,7 @@ const EventReportPage = () => {
<IconButton size="small" onClick={() => setSelectedItem(item)}>
<LocationSearchingIcon fontSize="small" />
</IconButton>
- ) : ''}
+ ))) || ''}
</TableCell>
{columns.map((key) => (
<TableCell key={key}>