fix: handle case if position is not defined

This commit is contained in:
Saqib Ansari 2021-07-30 13:58:22 +05:30
parent df9386208a
commit 92ef59e8e2

View file

@ -88,7 +88,7 @@ frappe.ui.form.FormTour = class FormTour {
return {
element,
name,
popover: { title, description, position: frappe.router.slug(position) },
popover: { title, description, position: frappe.router.slug(position || 'Bottom') },
onNext: on_next
};
}