Commit 68b92c33 authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

#498 fix warnings console

parent 94adb3c9
Pipeline #48186 passed with stage
in 2 minutes and 59 seconds
......@@ -27,7 +27,9 @@ function BreadCrumbs(props) {
let badges = '';
if (item.badges) {
badges = item.badges.map((badge) => (
<>{badge && <Label className={styles.badge}>{badge}</Label>}</>
<span key={badge}>
{badge && <Label className={styles.badge}>{badge}</Label>}
</span>
));
}
return (
......
......@@ -39,7 +39,7 @@ function Event(props) {
<a
href={`events?page=${page}#${event._id}`}
style={{ fontWeight: 'bold' }}
class="text-muted"
className="text-muted"
>
{moment(getOriginalEvent(event).creationDate).format(
moment.HTML5_FMT.TIME_SECONDS
......
......@@ -234,7 +234,7 @@ function EventListMenu(props) {
</Nav>
<Nav pullRight>
<NavItem className="logbookNavItem" pullRight>
<NavItem className="logbookNavItem">
<div className="hidden-xs hidden-sm hidden-md">
<LogbookPager
activePage={activePage}
......
......@@ -35,7 +35,7 @@ function EventsPage() {
const edit = query.get('edit');
const search = query.get('search');
const page = query.get('page') || 1;
const page = parseInt(query.get('page')) || 1;
const { categoryTypes } = useSelector((state) => state.logbook);
const investigation = useResource(InvestigationResource.detailShape(), {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment