mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 10:11:03 +01:00 
			
		
		
		
	Throw exception if EventTile is instantiated with an event type it doesn't support.
This commit is contained in:
		
							parent
							
								
									3db86b1f59
								
							
						
					
					
						commit
						f4ca30bb38
					
				@ -76,7 +76,7 @@ module.exports = React.createClass({
 | 
				
			|||||||
        // This shouldn't happen: the caller should check we support this type
 | 
					        // This shouldn't happen: the caller should check we support this type
 | 
				
			||||||
        // before trying to instantiate us
 | 
					        // before trying to instantiate us
 | 
				
			||||||
        if (!EventTileType) {
 | 
					        if (!EventTileType) {
 | 
				
			||||||
            return null;
 | 
					            throw new Error("Event type not supported");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        var classes = classNames({
 | 
					        var classes = classNames({
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user