Fix: use Optional chaining

This commit is contained in:
Nelson Chan
2021-07-22 16:13:58 +08:00
parent 96c60dd94a
commit f20ab4b0e3
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@
</div>
</div>
<div class="shadow-box big-padding text-center stats" v-if="monitor.type === 'http' && monitor.getUrl().protocol === 'https:' && certInfo != null">
<div class="shadow-box big-padding text-center stats" v-if="monitor.type === 'http' && monitor.getUrl()?.protocol === 'https:' && certInfo != null">
<div class="row">
<div class="col">
<h4>Certificate Info</h4>