fix: fix the error caused by not setting defaultValue (#791)

This commit is contained in:
Kagol 2023-11-10 19:10:22 -08:00 committed by GitHub
parent 6c746c96b7
commit aa52d71032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@
<span v-else v-html="row.type"></span>
</td>
<td v-if="!key.includes('slots') && !key.includes('events')">
<span v-html="typeof row.defaultValue === 'string' ? row.defaultValue : row.defaultValue[langKey] || '--'"></span>
<span v-html="typeof row.defaultValue === 'string' ? row.defaultValue : row.defaultValue?.[langKey] || '--'"></span>
</td>
<td><span v-html="row.desc[langKey]"></span></td>
</tr>