Skip to content

Commit

Permalink
#281 - Fix for undefined className
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Apr 25, 2019
1 parent 9cf0ba6 commit daef2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/webPartTitle/WebPartTitle.tsx
Expand Up @@ -45,7 +45,7 @@ export class WebPartTitle extends React.Component<IWebPartTitleProps, {}> {
public render(): React.ReactElement<IWebPartTitleProps> {
if (this.props.title || this.props.moreLink || this.props.displayMode === DisplayMode.Edit) {
return (
<div className={`${styles.webPartHeader} ${this.props.className}`}>
<div className={`${styles.webPartHeader} ${this.props.className ? this.props.className : ""}`}>
<div className={styles.webPartTitle}>
{
this.props.displayMode === DisplayMode.Edit && (
Expand Down

1 comment on commit daef2d0

@hugoabernier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, you beat me to it!

Please sign in to comment.