Skip to content

Commit daef2d0

Browse files
committed
#281 - Fix for undefined className
1 parent 9cf0ba6 commit daef2d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/webPartTitle/WebPartTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class WebPartTitle extends React.Component<IWebPartTitleProps, {}> {
4545
public render(): React.ReactElement<IWebPartTitleProps> {
4646
if (this.props.title || this.props.moreLink || this.props.displayMode === DisplayMode.Edit) {
4747
return (
48-
<div className={`${styles.webPartHeader} ${this.props.className}`}>
48+
<div className={`${styles.webPartHeader} ${this.props.className ? this.props.className : ""}`}>
4949
<div className={styles.webPartTitle}>
5050
{
5151
this.props.displayMode === DisplayMode.Edit && (

0 commit comments

Comments
 (0)