Skip to content

Commit

Permalink
model version builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Vixtir committed Jan 28, 2019
1 parent 10447ea commit e59c60b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export class ApplicationsWrapperComponent implements OnDestroy {
this.modelsVersionSub = this.storeModels.select(fromModels.getAllModelVersions).subscribe(
modelVersions => {
this.someModelVersionIsFinished = modelVersions.some(
modelVersion => modelVersion.status === ModelVersionStatus.Released
modelVersion => {
return modelVersion.status === ModelVersionStatus.Released
}
);
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/builders/model-version.builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ModelVersionBuilder {
runtime: props.runtime,
model: props.model,
hostSelector: props.hostSelector,
status: props.status || props.status.toLowerCase(),
status: (props.status && props.status.toLowerCase()) || ModelVersionStatus.Undefined,
applications: props.applications,
});
}
Expand Down

0 comments on commit e59c60b

Please sign in to comment.