fix: workspace loading issue (#23179)

* fix: workspace loading issue

* style: format js

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
Dany Robert 2023-11-12 20:15:49 +05:30 committed by GitHub
parent b8d1ede3d7
commit c91a25e3b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -346,7 +346,7 @@ frappe.views.Workspace = class Workspace {
) {
default_page = {
name: localStorage.current_page,
public: localStorage.is_current_page_public == "true",
public: localStorage.is_current_page_public != "false",
};
} else if (Object.keys(this.all_pages).length !== 0) {
default_page = { name: this.all_pages[0].title, public: this.all_pages[0].public };