We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812dc14 commit 0e98c77Copy full SHA for 0e98c77
ui/src/views/function-lib/index.vue
@@ -431,8 +431,14 @@ async function changeState(bool: Boolean, row: any) {
431
row.is_active = false
432
return
433
}
434
+ const init_params = res.data.init_field_list.reduce((acc: any, item: any) => {
435
+ acc[item.field] = item.default_value
436
+ return acc
437
+ }, {})
438
const obj = {
- is_active: bool
439
+ is_active: bool,
440
+ init_params: init_params,
441
+ init_field_list: res.data.init_field_list
442
443
functionLibApi.putFunctionLib(row.id, obj, changeStateloading).then((res) => {})
444
0 commit comments