From 6bf79f18c860f304e9a9008b14f6dcef0d5f4914 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 17 Aug 2023 12:37:29 +0530 Subject: [PATCH] chore: skip demo banner if another one present --- erpnext/public/js/utils/demo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/utils/demo.js b/erpnext/public/js/utils/demo.js index b59c4762e0..3ebc5efcf1 100644 --- a/erpnext/public/js/utils/demo.js +++ b/erpnext/public/js/utils/demo.js @@ -11,7 +11,7 @@ $(document).on("toolbar_setup", function () { function render_clear_demo_button() { let wait_for_onboaring_tours = setInterval(() => { - if ($("#driver-page-overlay").length) { + if ($("#driver-page-overlay").length || $("#show-dialog").length) { return; } setup_clear_demo_button();