Merge pull request #6313 from robintown/fix-image-rotation

Fix being able to un-rotate images
pull/21833/head
Germain 2021-07-05 07:22:05 +01:00 committed by GitHub
commit 92fcfbd8f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ export default class ImageView extends React.Component<IProps, IState> {
const image = this.image.current;
const imageWrapper = this.imageWrapper.current;
const rotation = inputRotation || this.state.rotation;
const rotation = inputRotation ?? this.state.rotation;
const imageIsNotFlipped = rotation % 180 === 0;