fix: App without home page gives error when navigate to home
This commit is contained in:
parent
bd6ed2033f
commit
68263b8663
1 changed files with 2 additions and 2 deletions
|
|
@ -354,8 +354,8 @@ frappe.router = {
|
|||
return a;
|
||||
}
|
||||
}).join('/');
|
||||
|
||||
return '/app/' + (path_string || 'home');
|
||||
let default_page = frappe.workspaces['home'] ? 'home' : Object.keys(frappe.workspaces)[0];
|
||||
return '/app/' + (path_string || default_page);
|
||||
},
|
||||
|
||||
push_state(url) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue