Does not show an error if primary node is not defined

parent 024f8f01
...@@ -201,7 +201,7 @@ class GeoNodeStatus { ...@@ -201,7 +201,7 @@ class GeoNodeStatus {
this.$dbReplicationLag.text('UNKNOWN'); this.$dbReplicationLag.text('UNKNOWN');
} }
if (this.primaryVersion === status.version && this.primaryRevision === status.revision) { if (!this.primaryVersion || (this.primaryVersion === status.version && this.primaryRevision === status.revision)) {
this.$secondaryVersion.removeClass(`${versionMismatchClass}`); this.$secondaryVersion.removeClass(`${versionMismatchClass}`);
this.$secondaryVersion.text(`${status.version} (${status.revision})`); this.$secondaryVersion.text(`${status.version} (${status.revision})`);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment