fix: skip undefined path

This commit is contained in:
Ankush Menat 2023-12-28 17:58:25 +05:30
parent 9b458ad354
commit bcd5d78dab

View file

@ -107,6 +107,7 @@ frappe.router = {
layout_mapped: {},
is_app_route(path) {
if (!path) return;
// desk paths must begin with /app or doctype route
if (path.substr(0, 1) === "/") path = path.substr(1);
path = path.split("/");