ProtonMail / proton-contacts

React web application to manage ProtonMail contacts
54 stars 19 forks source link

fix crash when creating new contact group #306

Closed econdepe closed 5 years ago

econdepe commented 5 years ago

As described in #304, when creating a new group from the contact view and adding the contact in the view to the list, the app crashes. The reason is that the new email labels (for the recently created group) are created before the list of contact groups is updated. This creates a mismatch that the app is unable to handle. It's enough to add a couple of lines to take care of this mismatch.

I also removed a isRequired property from a prop because it's not always required.

Fixes #304

EmilMN commented 4 years ago

Verified as fixed.