From 562499609c27c1b42a50b4197eef0f789ab3ecb2 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 14 Jun 2022 19:00:01 +0530 Subject: [PATCH] fix(minor): refresh tabs with sections (#17182) --- frappe/public/js/frappe/form/layout.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/public/js/frappe/form/layout.js b/frappe/public/js/frappe/form/layout.js index 6d000c99f9..080f8e0180 100644 --- a/frappe/public/js/frappe/form/layout.js +++ b/frappe/public/js/frappe/form/layout.js @@ -293,9 +293,6 @@ frappe.ui.form.Layout = class Layout { // refresh sections this.refresh_sections(); - // refresh tabs - this.is_tabbed_layout() && this.refresh_tabs(); - if (this.frm) { // collapse sections this.refresh_section_collapse(); @@ -325,6 +322,9 @@ frappe.ui.form.Layout = class Layout { section.addClass("empty-section"); } }); + + // refresh tabs + this.is_tabbed_layout() && this.refresh_tabs(); } refresh_tabs() {