Skip to content

Commit 7faf556

Browse files
committed
refactor: remove unused initialization parameters from function library update
--bug=1055178 --user=刘瑞斌 【函数】启用的函数,禁用后再启用,函数的部分启用参数会被置为X https://www.tapd.cn/57709429/s/1694852
1 parent 76ec8ad commit 7faf556

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ui/src/views/function-lib/index.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,8 @@ async function changeState(bool: Boolean, row: any) {
430430
row.is_active = false
431431
return
432432
}
433-
const init_params = res.data.init_field_list.reduce((acc: any, item: any) => {
434-
acc[item.field] = item.default_value
435-
return acc
436-
}, {})
437433
const obj = {
438434
is_active: bool,
439-
init_params: init_params,
440-
init_field_list: res.data.init_field_list
441435
}
442436
functionLibApi.putFunctionLib(row.id, obj, changeStateloading).then((res) => {})
443437
}

0 commit comments

Comments
 (0)