style: fix prettier formatting in ControlInt.eval_expression
This commit is contained in:
parent
fa5cc11c92
commit
67183e456e
1 changed files with 3 additions and 1 deletions
|
|
@ -15,7 +15,9 @@ frappe.ui.form.ControlInt = class ControlInt extends frappe.ui.form.ControlData
|
|||
return this.parse(value);
|
||||
}
|
||||
eval_expression(value, number_format) {
|
||||
return typeof value === "string" ? frappe.utils.eval_expression(value, number_format) : value;
|
||||
return typeof value === "string"
|
||||
? frappe.utils.eval_expression(value, number_format)
|
||||
: value;
|
||||
}
|
||||
parse(value) {
|
||||
return cint(this.eval_expression(value), null);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue