Skip to content

Commit

Permalink
Move resolve() inside loadDocumentNode
Browse files Browse the repository at this point in the history
  • Loading branch information
adamenagy committed May 7, 2020
1 parent 6c62c3e commit 7b0f563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forgesample/wwwroot/js/ForgeViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function launchViewer(data) {
function loadModels(data, objectNameBase) {
return new Promise(async (resolve, reject) => {
console.log('loadModels()');

for (key in data.components) {
let component = data.components[key]
var objectName = data.urnBase + component.fileName
Expand Down Expand Up @@ -76,8 +76,8 @@ function loadModel(documentId, component) {
console.log(component.cells)
console.log(opt)
viewer.loadDocumentNode(doc, viewables, opt).then(i => {
resolve()
});
resolve()
}

let onDocumentLoadFailure = (viewerErrorCode) => {
Expand Down

0 comments on commit 7b0f563

Please sign in to comment.