UI: Entity data subscription cmds prepare keys without duplicates.
This commit is contained in:
		
							parent
							
								
									f920010786
								
							
						
					
					
						commit
						36ec215d67
					
				@ -685,7 +685,7 @@ export class EntityDataSubscription {
 | 
				
			|||||||
      if (this.tsFields.length > 0) {
 | 
					      if (this.tsFields.length > 0) {
 | 
				
			||||||
        if (this.history) {
 | 
					        if (this.history) {
 | 
				
			||||||
          cmd.historyCmd = {
 | 
					          cmd.historyCmd = {
 | 
				
			||||||
            keys: this.tsFields.map(key => key.key),
 | 
					            keys: [... new Set(this.tsFields.map(key => key.key))],
 | 
				
			||||||
            startTs: this.subsTw.fixedWindow.startTimeMs,
 | 
					            startTs: this.subsTw.fixedWindow.startTimeMs,
 | 
				
			||||||
            endTs: this.subsTw.fixedWindow.endTimeMs,
 | 
					            endTs: this.subsTw.fixedWindow.endTimeMs,
 | 
				
			||||||
            interval: 0,
 | 
					            interval: 0,
 | 
				
			||||||
@ -702,7 +702,7 @@ export class EntityDataSubscription {
 | 
				
			|||||||
          }
 | 
					          }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          cmd.tsCmd = {
 | 
					          cmd.tsCmd = {
 | 
				
			||||||
            keys: this.tsFields.map(key => key.key),
 | 
					            keys: [... new Set(this.tsFields.map(key => key.key))],
 | 
				
			||||||
            startTs: this.subsTw.startTs,
 | 
					            startTs: this.subsTw.startTs,
 | 
				
			||||||
            timeWindow: this.subsTw.aggregation.timeWindow,
 | 
					            timeWindow: this.subsTw.aggregation.timeWindow,
 | 
				
			||||||
            interval: 0,
 | 
					            interval: 0,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user