Fix attached media uploads not being cleared when replying to a post (#23504)
This commit is contained in:
		
					parent
					
						
							
								71ae17e8f5
							
						
					
				
			
			
				commit
				
					
						bae17ebe5e
					
				
			
		
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -31,6 +31,11 @@ export default class Upload extends ImmutablePureComponent { | |||
| 
 | ||||
|   render () { | ||||
|     const { media } = this.props; | ||||
| 
 | ||||
|     if (!media) { | ||||
|       return null; | ||||
|     } | ||||
| 
 | ||||
|     const focusX = media.getIn(['meta', 'focus', 'x']); | ||||
|     const focusY = media.getIn(['meta', 'focus', 'y']); | ||||
|     const x = ((focusX /  2) + .5) * 100; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue