# HG changeset patch # User Lucas Thompson # Date 1496153295 -3600 # Node ID bcb0a172eca32ba0a76aa37545950cc6fce5c6b2 # Parent f12a12ce9de0efafe04d5c2efdae7cbfd5e3beeb Populate item with features when extracted. This should be moved to happen in a subscription. diff -r f12a12ce9de0 -r bcb0a172eca3 src/app/app.component.ts --- a/src/app/app.component.ts Tue May 30 15:07:32 2017 +0100 +++ b/src/app/app.component.ts Tue May 30 15:08:15 2017 +0100 @@ -201,8 +201,15 @@ }, key: outputInfo.extractorKey, outputId: outputInfo.outputId - }).then(() => { + }).then(result => { // TODO subscribe to the extraction service instead + const i = this.analyses.findIndex(val => val.id === result.id); this.canExtract = true; + if (i !== -1) { + this.analyses.set( + i, + Object.assign({}, this.analyses.get(i), result.result) + ); + } // TODO else remove the item? }).catch(err => { this.canExtract = true; this.analyses.shift();