mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 19:25:56 +00:00
Minor modification
This commit is contained in:
parent
c1925e3804
commit
7192f9b6ff
@ -149,7 +149,7 @@ export default class VisualizationChartsScoreGauge extends Component {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
// Prevents "modify twice in single render" issue
|
||||
this.score = this.score || 0;
|
||||
this.score = typeof this.score === 'number' ? this.score : 0;
|
||||
|
||||
setProperties(this, {
|
||||
maxScore: typeof this.maxScore === 'number' ? this.maxScore : 100,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user