Fix error
This commit is contained in:
		
							parent
							
								
									c633827e5e
								
							
						
					
					
						commit
						30c53e9ee0
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -64,9 +64,8 @@ export default abstract class Chart<T> {
 | 
				
			||||||
		const keys = {
 | 
							const keys = {
 | 
				
			||||||
			span: -1,
 | 
								span: -1,
 | 
				
			||||||
			date: -1
 | 
								date: -1
 | 
				
			||||||
		};
 | 
							} as any;
 | 
				
			||||||
		if (grouped)
 | 
							if (grouped) keys.group = -1;
 | 
				
			||||||
			keys.group = -1;
 | 
					 | 
				
			||||||
		this.collection.createIndex(keys, { unique: true });
 | 
							this.collection.createIndex(keys, { unique: true });
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue