fix: typeerror in onboarding_tours.js

This commit is contained in:
Shariq Ansari 2024-01-31 16:12:56 +05:30
parent 53d6d156ec
commit e7b3a785c1

View file

@ -265,7 +265,7 @@ frappe.ui.init_onboarding_tour = () => {
typeof frappe.boot.user.onboarding_status == "undefined" &&
frappe.boot.user.onboarding_status == {};
let route = frappe.router.current_route;
if (route[0] === "") return;
if (route?.[0] === "") return;
let tour_name;
let matching_tours = [];