client/src/components/NavbarGroup.js
changeset 168 ea92f4fe783d
parent 154 a28361bda28c
child 172 4b780ebbedc6
--- a/client/src/components/NavbarGroup.js	Tue Oct 09 19:07:47 2018 +0200
+++ b/client/src/components/NavbarGroup.js	Mon Oct 08 18:35:47 2018 +0200
@@ -41,7 +41,7 @@
     }
 
     if (currentGroup) {
-      const currentGroupName = currentGroup.get('name');
+      const currentGroupName = currentGroup.name;
       return (
         <li className={`nav-item dropdown ${this.state.showDropdown?'show':''}`}>
           <a className="nav-link dropdown-toggle" id="navbarDropdown" role="button" aria-haspopup="true" aria-expanded={this.state.showDropdown} onClick={this.toggleShowDropdown} onBlur={this.hideDropDown}>
@@ -50,7 +50,7 @@
           </a>
           <div id="group-menu-scroll-down" className={`dropdown-menu dropdown-menu-right shadow py-1 pt-3 mb-5 mt-2 bg-secondary border border-primary ${this.state.showDropdown?'show':''}`} aria-labelledby="navbarDropdown">
           { groups && groups.map((group, key) => {
-            const groupName = group.get('name');
+            const groupName = group.name;
             const className = (groupName === currentGroupName)?'active':null;
               return <a key={key} onClick={onClickGroup} className={`dropdown-item bg-secondary text-primary font-weight-bold ${className}`} data-groupname={groupName}>{ groupName }</a>
             })