There is a warning appears in console when there is no subheader set for CardHeader component
Below forked sandbox from example: https://material-ui-next.com/demos/cards/
https://codesandbox.io/s/04yxqkrwml — check dev tools console

@alex-hudenko What's your use case for having an empty CardHeader?
@oliviertassinari CardHeader is not empty but on my card I need title only.
This code will trigger warning:
```
avatar={
}
/>
To suppress warning I have to set empty subtitle:
subtitle="" // <------ It's not obvious and anti-pattern I think
avatar={
}
/>
@alex-hudenko Maybe it's surfacing an issue where the block shouldn't be rendered:
https://github.com/mui-org/material-ui/blob/5f50ef1db6c937f462c3544e4040826de3876596/src/Card/CardHeader.js#L42-L49
@oliviertassinari According to propTypes subheader property is not required
```jsx
CardHeader.propTypes = {
subheader: PropTypes.node,
}
// Threre should be something like:
{
subheader
?
component="span"
color="secondary"
className={classes.subheader}
>
{subheader}
:
null
}
@alex-hudenko Yes, I think that we should update the CardHeader.js implementation with a ternary condition on subheader 👍 .
This started happening to me just now, after upgrading from v1.0.0-beta.23 to v1.0.0-beta.24. On the former version it did not happen. Now the warning is all over the place when I run my tests.
I can give it a crack with a PR, if no one's on it yet.
@gnapse Yes, please 💃 :).
@gnapse Sorry, I had a go at fixing this before I saw this issue. It's been failing builds in our application since we updated yesterday (?). Happy to remove my PR if you have already started working on it mate. Have added your issue # to the commit / PR #9572.
@jwwisgerhof if you already made progress on this is all yours. I would've started around now, so I haven't yet done anything about it.
Most helpful comment
I can give it a crack with a PR, if no one's on it yet.