Skip to content
Snippets Groups Projects

WS-797: Polishing QA process

Merged Nathan Hertz requested to merge WS-797-set-request-state-using-version-state into main
1 unresolved thread
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
@@ -85,8 +85,12 @@ export class CapabilityRequestComponent implements OnInit, OnDestroy {
next: (capabilityVersion) => {
if (capabilityVersion !== undefined) {
this.latestVersion = capabilityVersion;
// Set selected version to be the request's current version if no version is selected
if (this.currentVersion === undefined) {
// Set selected version to be the request's latest version
// If no version is selected or if the selected version is the latest version
if (
this.currentVersion === undefined ||
this.currentVersion.version_number === this.latestVersion.version_number
) {
this.setVersion(this.latestVersion);
}
} else {
Loading