feat: check if indicator is present
This commit is contained in:
parent
ba7eda1c63
commit
e09b1cd81d
1 changed files with 2 additions and 2 deletions
|
|
@ -643,8 +643,8 @@ frappe.ui.form.Section = Class.extend({
|
|||
|
||||
this.body.toggleClass("hide", hide);
|
||||
this.head.toggleClass("collapsed", hide);
|
||||
this.indicator.toggleClass("octicon-chevron-down", hide);
|
||||
this.indicator.toggleClass("octicon-chevron-up", !hide);
|
||||
this.indicator && this.indicator.toggleClass("octicon-chevron-down", hide);
|
||||
this.indicator && this.indicator.toggleClass("octicon-chevron-up", !hide);
|
||||
|
||||
// refresh signature fields
|
||||
this.fields_list.forEach((f) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue