[Fix] Parameter values disappear when editing Zeppelin task (#11115)
(cherry picked from commit 2e81f30298)
This commit is contained in:
parent
dd34a1da67
commit
f7ed6ef850
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue