fix component did mount

This commit is contained in:
casperlamboo 2018-02-15 11:12:39 +01:00
parent be8a49e5c7
commit 7fd9220851

View File

@ -45,7 +45,7 @@ class DoodlePreview extends React.Component {
scene: null
};
async componentWillMount() {
async componentDidMount() {
let { docData, sketchData } = this.props;
if (docData) sketchData = await JSONToSketchData(docData.data, docData.appVersion);