You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when the evaluation of content.location returns false, and no <Panel /> is inserted, rc-collapse breaks because it expects a child with a .key property:
TypeError: null is not an object (evaluating 'child.key')
If rc-collapse would check if child exists before reading key, it would allow us to dynamically insert <Panel />s based on conditions, like in the example above.
The text was updated successfully, but these errors were encountered:
Hi,
I'm conditionally putting
<Panel />
s like this:However, when the evaluation of
content.location
returns false, and no<Panel />
is inserted,rc-collapse
breaks because it expects a child with a.key
property:If
rc-collapse
would check ifchild
exists before readingkey
, it would allow us to dynamically insert<Panel />
s based on conditions, like in the example above.The text was updated successfully, but these errors were encountered: