Commit 56c39016 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Variable values editor: count final abscissa in values number preview

Showing with 6 additions and 1 deletion
+6 -1
......@@ -205,7 +205,12 @@ export class DialogEditParamValuesComponent implements OnInit {
public get numberOfValues(): number {
if (this.isMinMax) {
return this.param.paramDefinition.getInferredValuesList().length;
try {
return this.param.paramDefinition.getInferredValuesList().length;
} catch (e) {
// min > max or something, silent fail
return 0;
}
} else {
// values are not set before closing modal
return this.buildNumbersListFromString(this.valuesListForm.controls.valuesList.value).length;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment