fix: use replace instead of slice
Co-Authored-By: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
2004e2e4cf
commit
09548a881b
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ frappe.ui.GroupBy = class {
|
|||
apply_settings(settings) {
|
||||
|
||||
// Extract fieldname from `tabdoctype`.`fieldname`
|
||||
let group_by_fieldname = settings.group_by.split('.')[1].slice(1, -1);
|
||||
let group_by_fieldname = settings.group_by.split('.')[1].replace('`', '');
|
||||
|
||||
this.groupby_select.val(group_by_fieldname);
|
||||
this.aggregate_function_select.val(settings.aggregate_function);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue