Browse Source

fix: Set home workspace as first available for user

The default Build Workspace may not be available for all users
depending on Role/Permissions settings. To handle this, instead of
assuming everyone gets Build, we'll dynamically pick from the
available workspaces instead

(cherry picked from commit 3b42738947)
version-14
Gavin D'souza 4 years ago
committed by mergify-bot
parent
commit
42f2d87a68
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/desk.js

+ 1
- 1
frappe/public/js/frappe/desk.js View File

@@ -289,7 +289,7 @@ frappe.Application = class Application {
}
if (!frappe.workspaces['home']) {
// default workspace is settings for Frappe
frappe.workspaces['home'] = frappe.workspaces['build'];
frappe.workspaces['home'] = frappe.workspaces[Object.keys(frappe.workspaces)[0]];
}
}



Loading…
Cancel
Save