Skip to content

Commit 1cf59cd

Browse files
committed
fix: tts mode dont show default value
1 parent 5faa28e commit 1cf59cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/application/component/TTSModeParamSettingDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const reset_default = (model_id: string, application_id?: string) => {
9898
api.then((ok) => {
9999
model_form_field.value = ok.data
100100
const model_setting_data = ok.data
101-
.map((item) => ({ [item.field]: item.default_value }))
101+
.map((item) => ({ [item.field]: item.show_default_value !== false ? item.default_value : undefined }))
102102
.reduce((x, y) => ({ ...x, ...y }), {})
103103
104104
emit('refresh', model_setting_data)

0 commit comments

Comments
 (0)