mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
fix component did mount
This commit is contained in:
parent
be8a49e5c7
commit
7fd9220851
@ -45,7 +45,7 @@ class DoodlePreview extends React.Component {
|
|||||||
scene: null
|
scene: null
|
||||||
};
|
};
|
||||||
|
|
||||||
async componentWillMount() {
|
async componentDidMount() {
|
||||||
let { docData, sketchData } = this.props;
|
let { docData, sketchData } = this.props;
|
||||||
|
|
||||||
if (docData) sketchData = await JSONToSketchData(docData.data, docData.appVersion);
|
if (docData) sketchData = await JSONToSketchData(docData.data, docData.appVersion);
|
||||||
|
Loading…
Reference in New Issue
Block a user