Skip to content
Snippets Groups Projects
Commit 877ee7ff authored by Nathan Hertz's avatar Nathan Hertz Committed by Nathan Hertz
Browse files

Latest version now updates in real-time again; other versions do not

parent e65b2a10
No related branches found
No related tags found
No related merge requests found
Pipeline #3687 failed
This commit is part of merge request !657. Comments created here will be created in the context of that merge request.
......@@ -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 {
......
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