title: GroupMain.jsx:132 Uncaught TypeError: Cannot read properties of undefined (reading 'map') at GroupMain
body: <p>I want to map my object's properties, in this case I want program to return first_name of admin, however it returns me error that cannot read properties of undefined.</p>
  <p><a href="https://i.stack.imgur.com/KKPbu.png" rel="nofollow noreferrer">enter image description here</a></p>
  <pre><code>    const dispatch = useDispatch();
      const {slug} = useParams();
      const {groupMain: {bio, is_public, is_visible, date_created, members_quantity, 
      location, admins_quantity}} = useSelector(getGroupMain);
      const {groupMain: {admins}} = useSelector(getGroupMain)
     console.log(admins)
  
  
  &lt;div className=&quot;row&quot;&gt;
  
                              {admins.map((admin) =&gt; {
                                  return (
                                      &lt;div className=&quot;col-sm-4&quot;&gt;
                                          &lt;a href='/'&gt;
                                              &lt;div className=&quot;circle-img&quot;&gt;
                                                  &lt;img src='/' className=&quot;img&quot; alt=&quot;following-user-avatar&quot;/&gt;
                                              &lt;/div&gt;
  
                                              &lt;div className=&quot;following-username&quot;&gt;
                                                  &lt;small&gt;
                                                      {admin.first_name}
                                                  &lt;/small&gt;
                                                  &lt;small&gt;
                                                      {/*{{ admin.last_name }}*/}
                                                  &lt;/small&gt;
                                              &lt;/div&gt;
                                          &lt;/a&gt;
                                      &lt;/div&gt;)
  
                              }) }
  
  
  
                              &lt;h4&gt;No any admins yet!&lt;/h4&gt;
  
                          &lt;/div&gt;
  </code></pre>