Before this commit, we passed the viewMode props to the X2many field everytime. Since that props is optional, we don't have to pass it if it is not a string (null or undefined) This allows to display a field set as invisible in studio Part-of: odoo/odoo#115799