Commit 5d5ed5cb authored by Kushal Pandya's avatar Kushal Pandya

FIx value check so it handles `null` and `undefined`

parent 6ffacd08
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
return this.nodeDetails.healthy ? this.nodeDetails.health : this.nodeDetails.healthStatus; return this.nodeDetails.healthy ? this.nodeDetails.health : this.nodeDetails.healthStatus;
}, },
storageShardsStatus() { storageShardsStatus() {
if (this.nodeDetails.storageShardsMatch === null) { if (this.nodeDetails.storageShardsMatch == null) {
return __('Unknown'); return __('Unknown');
} }
return this.nodeDetails.storageShardsMatch ? __('OK') : s__('GeoNodes|Does not match the primary storage configuration'); return this.nodeDetails.storageShardsMatch ? __('OK') : s__('GeoNodes|Does not match the primary storage configuration');
......
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