fix: skip undefined path
This commit is contained in:
parent
9b458ad354
commit
bcd5d78dab
1 changed files with 1 additions and 0 deletions
|
|
@ -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("/");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue