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 1a5db6b commit 4a6d8c9Copy full SHA for 4a6d8c9
ui/src/views/tool/index.vue
@@ -438,7 +438,7 @@ async function changeState(row: any) {
438
} else {
439
const res = await ToolApi.getToolById(row.id, changeStateloading)
440
if (
441
- !res.data.init_params &&
+ (!res.data.init_params || Object.keys(res.data.init_params).length === 0) &&
442
res.data.init_field_list &&
443
res.data.init_field_list.length > 0 &&
444
res.data.init_field_list.filter((item: any) => item.default_value && item.show_default_value)
0 commit comments