Browse Source

[UI] null pointer exception (#6325)

2.0.7-release
Wangyizhi1 3 years ago committed by GitHub
parent
commit
bf8e9b5721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue

6
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue

@ -55,7 +55,7 @@
</el-select> </el-select>
</template> </template>
</m-list-box-f> </m-list-box-f>
<div class="alertForm"> <div class="alertForm">
<template> <template>
<form-create v-model="$f" :rule="rule" :option="{submitBtn:false}" size="mini"></form-create> <form-create v-model="$f" :rule="rule" :option="{submitBtn:false}" size="mini"></form-create>
</template> </template>
@ -127,6 +127,10 @@
if (item.title.indexOf('$t') !== -1) { if (item.title.indexOf('$t') !== -1) {
item.title = this.$t(item.field) item.title = this.$t(item.field)
} }
// fix null pointer exception
if (!item.props) {
item.props = {}
}
}) })
}).catch(e => { }).catch(e => {
this.$message.error(e.msg || '') this.$message.error(e.msg || '')

Loading…
Cancel
Save