diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-24 16:02:48 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-24 16:02:48 -0800 |
commit | 8bd7cba6f5ce56bcccda1459cdd953b3add799d6 (patch) | |
tree | d133b5e57cee061fd49eeddcec35dc3b38254a6d /modern/src/reports/EventReportPage.jsx | |
parent | 3106f6ab617b23d6fb2587c3cde2b684abac2605 (diff) | |
download | trackermap-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.jsx | 4 |
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}> |