Skip to content

Commit

Permalink
Fix regression with deep linking (#6688)
Browse files Browse the repository at this point in the history
Fix regression with deep linking
  • Loading branch information
shilman authored Apr 30, 2019
2 parents 8707ba4 + dd36070 commit a1511ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/src/components/preview/iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export class IFrame extends Component {
}

shouldComponentUpdate(nextProps) {
const { scale } = this.props;
return scale !== nextProps.scale;
const { scale, src } = this.props;
return scale !== nextProps.scale || src !== nextProps.src;
}

componentDidUpdate(prevProps) {
Expand Down

1 comment on commit a1511ab

@vercel
Copy link

@vercel vercel bot commented on a1511ab Apr 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.