cozy / cozy-ui

React components and CSS styles for Cozy apps
https://cozy.github.io/cozy-ui/react/
MIT License
48 stars 37 forks source link

[VO-903] fix(ViewerControls): children can contain undefined values #2672

Closed cballevre closed 3 months ago

cballevre commented 3 months ago

In the Viewer, we define a variable which can be undefined inside the ViewerControls children. When the ViewerControls matches its children to find out which display it checks for the type that crashed the application because it doesn't exist on undefined.

cozy-bot commented 3 months ago

:tada: This PR is included in version 110.8.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: