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) { ...@@ -27,7 +27,9 @@ function BreadCrumbs(props) {
let badges = ''; let badges = '';
if (item.badges) { if (item.badges) {
badges = item.badges.map((badge) => ( badges = item.badges.map((badge) => (
<>{badge && <Label className={styles.badge}>{badge}</Label>}</> <span key={badge}>
{badge && <Label className={styles.badge}>{badge}</Label>}
</span>
)); ));
} }
return ( return (
......
...@@ -39,7 +39,7 @@ function Event(props) { ...@@ -39,7 +39,7 @@ function Event(props) {
<a <a
href={`events?page=${page}#${event._id}`} href={`events?page=${page}#${event._id}`}
style={{ fontWeight: 'bold' }} style={{ fontWeight: 'bold' }}
class="text-muted" className="text-muted"
> >
{moment(getOriginalEvent(event).creationDate).format( {moment(getOriginalEvent(event).creationDate).format(
moment.HTML5_FMT.TIME_SECONDS moment.HTML5_FMT.TIME_SECONDS
......
...@@ -234,7 +234,7 @@ function EventListMenu(props) { ...@@ -234,7 +234,7 @@ function EventListMenu(props) {
</Nav> </Nav>
<Nav pullRight> <Nav pullRight>
<NavItem className="logbookNavItem" pullRight> <NavItem className="logbookNavItem">
<div className="hidden-xs hidden-sm hidden-md"> <div className="hidden-xs hidden-sm hidden-md">
<LogbookPager <LogbookPager
activePage={activePage} activePage={activePage}
......
...@@ -35,7 +35,7 @@ function EventsPage() { ...@@ -35,7 +35,7 @@ function EventsPage() {
const edit = query.get('edit'); const edit = query.get('edit');
const search = query.get('search'); 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 { categoryTypes } = useSelector((state) => state.logbook);
const investigation = useResource(InvestigationResource.detailShape(), { 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