[Fix] Parameter values disappear when editing Zeppelin task (#11115)

(cherry picked from commit 2e81f30298)
This commit is contained in:
pinkhello 2022-07-28 15:03:26 +08:00 committed by Jiajie Zhong
parent dd34a1da67
commit f7ed6ef850
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] {
return [
{
type: 'input',
field: 'zeppelinNoteId',
field: 'noteId',
name: t('project.node.zeppelin_note_id'),
props: {
placeholder: t('project.node.zeppelin_note_id_tips')
@ -41,7 +41,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] {
},
{
type: 'input',
field: 'zeppelinParagraphId',
field: 'paragraphId',
name: t('project.node.zeppelin_paragraph_id'),
props: {
placeholder: t('project.node.zeppelin_paragraph_id_tips')

View File

@ -314,8 +314,8 @@ export function formatParams(data: INodeData): {
}
if (data.taskType === 'ZEPPELIN') {
taskParams.noteId = data.zeppelinNoteId
taskParams.paragraphId = data.zeppelinParagraphId
taskParams.noteId = data.noteId
taskParams.paragraphId = data.paragraphId
}
if (data.taskType === 'PIGEON') {