Skip to content

Commit 10d77f8

Browse files
committed
fix: only display signature validation data if exists
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent c4b5a2b commit 10d77f8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/views/Validation.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,10 @@
160160
</NcButton>
161161
</template>
162162
<template #indicator>
163-
<NcIconSvgWrapper :name="signer.signature_validation.label"
163+
<NcIconSvgWrapper v-if="signer.signature_validation"
164+
:name="signer.signature_validation.label"
164165
:path="getIconValidityPath(signer)"
165-
:style="{color: signer.signature_validation.id === 1? 'green' : 'red'}"
166+
:style="{color: signer.signature_validation?.id === 1? 'green' : 'red'}"
166167
:size="20" />
167168
</template>
168169
</NcListItem>
@@ -175,7 +176,7 @@
175176
{{ dateFromSqlAnsi(signer.request_sign_date) }}
176177
</template>
177178
</NcListItem>
178-
<NcListItem v-if="signer.opened"
179+
<NcListItem v-if="signer.opened && signer.signature_validation"
179180
class="extra"
180181
compact
181182
:name="t('libresign', 'Signature validation:')">

0 commit comments

Comments
 (0)