Skip to content

Commit b8a9781

Browse files
Fixed Parameter List editing
1 parent 0ed2799 commit b8a9781

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Client/svelte/src/lib/amcf/modules/ModuleParameterList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
instance: row.paramInstance ?? '',
4747
group: row.paramGroupName ?? '',
4848
parameter: row.paramName ?? '',
49-
value: editValue,
49+
value: String(editValue ?? ''),
5050
type: row.paramType ?? '',
5151
};
5252
if (row.paramMin) params.min = String(row.paramMin);

Client/vue2/src/modules/AMCModule_ParameterList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default {
118118
instance: item.paramInstance || '',
119119
group: item.paramGroupName || '',
120120
parameter: item.paramName || '',
121-
value: this.editValue,
121+
value: String(this.editValue != null ? this.editValue : ''),
122122
type: item.paramType || '',
123123
};
124124
if (item.paramMin)

0 commit comments

Comments
 (0)