Compare commits

..

No commits in common. "c2b9dcd277c7ec5ea29c81141fce5707af9a403a" and "1744d488893ac0e229aae40cd3e4ee03ca3ecc5b" have entirely different histories.

3 changed files with 3 additions and 9 deletions

View File

@ -215,9 +215,7 @@ export default {
cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex]) cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex])
.then(image => { .then(image => {
this.loading = false this.loading = false
if (this.stack.imageIds.indexOf(image.imageId) !== -1) { this.onFirstImageLoaded(image)
this.onFirstImageLoaded(image)
}
}).catch((error) => { }).catch((error) => {
this.loading = false this.loading = false
if (error.error && error.error.message) { if (error.error && error.error.message) {

View File

@ -1113,9 +1113,7 @@ export default {
this.loading = true this.loading = true
cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex]) cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex])
.then(async image => { .then(async image => {
if (this.stack.imageIds.indexOf(image.imageId) !== -1) { await scope.onFirstImageLoaded(image)
await scope.onFirstImageLoaded(image)
}
scope.loading = false scope.loading = false
resolve() resolve()
}) })

View File

@ -1088,9 +1088,7 @@ export default {
this.loading = true this.loading = true
cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex]) cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex])
.then(async image => { .then(async image => {
if (this.stack.imageIds.indexOf(image.imageId) !== -1) { await scope.onFirstImageLoaded(image)
await scope.onFirstImageLoaded(image)
}
scope.loading = false scope.loading = false
resolve() resolve()
}) })