Merge pull request #9795 from Dmitriymush/bug-fix/value-card-widget
Added additional check for string and empty string in value card widget.
This commit is contained in:
		
						commit
						fa6466f14e
					
				@ -183,7 +183,7 @@ export class ValueCardWidgetComponent implements OnInit, AfterViewInit, OnDestro
 | 
			
		||||
    const tsValue = getSingleTsValue(this.ctx.data);
 | 
			
		||||
    let ts;
 | 
			
		||||
    let value;
 | 
			
		||||
    if (tsValue && isDefinedAndNotNull(tsValue[1])) {
 | 
			
		||||
    if (tsValue && isDefinedAndNotNull(tsValue[1]) && tsValue[0] !== 0) {
 | 
			
		||||
      ts = tsValue[0];
 | 
			
		||||
      value = tsValue[1];
 | 
			
		||||
      this.valueText = formatValue(value, this.decimals, this.units, false);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user