Resolving an issue where we don't check to see if unrepeatedSans exists before using it (#12417)

https://github.com/rancher/dashboard/issues/12255
This commit is contained in:
codyrancher 2024-10-30 05:10:39 -07:00 committed by GitHub
parent 27dce1ed68
commit 001b6e922d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export default {
<template>
<div v-if="isTLS">
<t k="secret.certificate.cn" /> {{ cn }} <span v-if="row.unrepeatedSans.length">{{ t('secret.certificate.plusMore', {n:row.unrepeatedSans.length}) }}</span><br>
<t k="secret.certificate.cn" /> {{ cn }} <span v-if="row.unrepeatedSans && row.unrepeatedSans.length">{{ t('secret.certificate.plusMore', {n:row.unrepeatedSans.length}) }}</span><br>
<t k="secret.certificate.expires" />: <DateComponent
:class="dateClass"
:value="expiration"