Skip to content
Snippets Groups Projects
Commit 87ef5b46 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Fix project json loading through storage

parent 370acbf7
Branches
Tags
No related merge requests found
......@@ -15,7 +15,7 @@ export default [{
id: 0,
assetType: 'Project',
dataFormat: 'JSON',
data: projectJson
data: JSON.stringify(projectJson)
}, {
id: '83a9787d4cb6f3b7632b4ddfebf74367',
assetType: 'Sound',
......
......@@ -28,7 +28,7 @@ const ProjectLoaderHOC = function (WrappedComponent) {
storage
.load(storage.AssetType.Project, this.state.projectId, storage.DataFormat.JSON)
.then(projectAsset => projectAsset && this.setState({
projectData: JSON.stringify(projectAsset.data)
projectData: projectAsset.data.toString()
}))
.catch(err => log.error(err));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment