Skip to content
Snippets Groups Projects
Verified Commit bc82a9fb authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Support the updated ListProcessDatasets response on process start checks

parent b1623a63
No related branches found
No related tags found
1 merge request!1646Support the updated ListProcessDatasets response on process start checks
......@@ -358,7 +358,7 @@ export default {
* @type {boolean}
*/
hasRequiredDatasets () {
return this.process?.mode !== 'dataset' || !Array.isArray(this.processDatasets[this.id]) || this.processDatasets[this.id].some(dataset => dataset.corpus_id === this.process.corpus)
return this.process?.mode !== 'dataset' || !Array.isArray(this.processDatasets[this.id]) || this.processDatasets[this.id].some(({ dataset }) => dataset.corpus_id === this.process.corpus)
},
canRun () {
return (this.hasWorkerRuns ^ this.thumbnails) && this.hasRequiredDatasets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment