This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.3.2
in repository https://gitbox.apache.org/repos/asf/linkis.git


The following commit(s) were added to refs/heads/dev-1.3.2 by this push:
     new 8473c02ab [ISSUE-4158]Add datasource env error fix (#4162)
8473c02ab is described below

commit 8473c02abe6aaed4f076ae5ca561bc77c1c4dcd4
Author: QuantumXiecao <[email protected]>
AuthorDate: Thu Feb 9 14:58:36 2023 +0800

    [ISSUE-4158]Add datasource env error fix (#4162)
    
    Co-authored-by: xiecao <[email protected]>
---
 linkis-web/src/apps/linkis/module/datasourceEnv/index.vue | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/linkis-web/src/apps/linkis/module/datasourceEnv/index.vue 
b/linkis-web/src/apps/linkis/module/datasourceEnv/index.vue
index dba47a6e1..0eea389ea 100644
--- a/linkis-web/src/apps/linkis/module/datasourceEnv/index.vue
+++ b/linkis-web/src/apps/linkis/module/datasourceEnv/index.vue
@@ -289,6 +289,10 @@ export default {
     },
     onModalOk(){
       this.$refs.editForm.formModel.submit((formData)=>{
+        if (!('parameter' in formData)) {
+          formData['parameter'] = {}
+        }
+
         if('pic' in formData) delete formData['pic'];
         delete formData._index
         delete formData._rowKey


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to