Skip to content
Snippets Groups Projects
Commit c644ab6d authored by Tainan Felipe's avatar Tainan Felipe
Browse files

Remove null exceppetion

parent a3609deb
No related branches found
No related tags found
No related merge requests found
......@@ -143,9 +143,11 @@ class PresentationArea extends Component {
calculateSize() {
const { presentationHeight, presentationWidth, fitToWidth } = this.state;
const { currentSlide } = this.props;
const { calculatedData } = currentSlide || {};
const originalWidth = calculatedData.width;
const originalHeight = calculatedData.height;
const slideSizes = currentSlide
&& currentSlide.calculatedData
? currentSlide.calculatedData : {};
const originalWidth = slideSizes.width;
const originalHeight = slideSizes.height;
let adjustedWidth;
let adjustedHeight;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment