Skip to content

Commit f0716b8

Browse files
author
Eric Weintraub
committed
resolved unused expression warning
1 parent 772e1fa commit f0716b8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/controls/richText/RichTextPropertyPane.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export default class RichTextPropertyPane extends React.Component<IRichTextPrope
322322
* Add custom colors if passed as a property
323323
*/
324324
let fontColorGroups = ["themeColors","standardColors"];
325-
this.props.customColors && fontColorGroups.push('customColors');
325+
if(this.props.customColors) fontColorGroups.push('customColors');
326326

327327
return (
328328
<div className={styles.propertyPaneGroupField}>

src/loc/mystrings.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ declare interface IControlStrings {
100100
ThemeColorsGroupName: string;
101101
HighlightColorsGroupName: string;
102102
StandardColorsGroupName: string;
103+
ColorsGroupName: string;
103104
ThemeColorDarker: string;
104105
ThemeColorDark: string;
105106
ThemeColorDarkAlt: string;

0 commit comments

Comments
 (0)