Merge pull request #4268 from GabrielInTheWorld/4262

Fixes the initial loading of motions and their states
This commit is contained in:
Sean 2019-02-07 13:57:02 +01:00 committed by GitHub
commit 5ace768427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,6 +405,7 @@ export class ViewMotion extends BaseProjectableModel {
public updateWorkflow(workflow: Workflow): void { public updateWorkflow(workflow: Workflow): void {
if (this.motion && workflow.id === this.motion.workflow_id) { if (this.motion && workflow.id === this.motion.workflow_id) {
this._workflow = workflow; this._workflow = workflow;
this._state = workflow.getStateById(this.state_id);
} }
} }