Skip to content

Commit

Permalink
Simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Nov 12, 2021
1 parent 064a762 commit 4827e78
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ export default class ColorSchemeControl extends React.PureComponent {
value,
}));

currentScheme =
this.props.value ||
(this.props.default !== undefined ? this.props.default : undefined);
currentScheme = this.props.value || this.props.default;

if (currentScheme === 'SUPERSET_DEFAULT') {
currentScheme = this.schemes?.SUPERSET_DEFAULT?.id;
Expand Down

0 comments on commit 4827e78

Please sign in to comment.