fix(editor): Fix issue that some errors did not show up correctly (#3507)

This commit is contained in:
Jan Oberhauser 2022-06-13 12:04:18 -07:00 committed by GitHub
parent 9ff57629c5
commit 955db0ab10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@
<font-awesome-icon class="error-details__icon" icon="angle-right" /> {{ $locale.baseText('nodeErrorView.details') }}
</summary>
<div class="error-details__content">
<div v-if="error.context.causeDetailed">
<div v-if="error.context && error.context.causeDetailed">
<el-card class="box-card" shadow="never">
<div>
{{error.context.causeDetailed}}
@ -140,7 +140,7 @@ export default mixins(
},
methods: {
getErrorMessage (): string {
if (!this.error.context.messageTemplate) {
if (!this.error.context || !this.error.context.messageTemplate) {
return this.error.message;
}