diff options
author | bobzel <zzzman@gmail.com> | 2022-09-12 19:55:48 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-12 19:55:48 -0400 |
commit | c00a43e60023317dc78db51079bb8ac1276a26aa (patch) | |
tree | c90977f34da0afa84e21973daeee9d4b025a6379 /src | |
parent | a2820ffc0c9fd8323fa2f9a9ae5334da4c72283b (diff) |
fixed crash opening myTrails
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 5fbecd741..75445600c 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -280,7 +280,7 @@ export class CurrentUserUtils { /// returns descriptions needed to buttons for the left sidebar to open up panes displaying different collections of documents static leftSidebarMenuBtnDescriptions(doc: Doc):{title:string, target:Doc, icon:string, scripts:{[key:string]:any}, funcs?:{[key:string]:any}}[] { const badgeValue = "((len) => len && len !== '0' ? len: undefined)(docList(self.target.data).filter(doc => !docList(self.target.viewed).includes(doc)).length.toString())"; - const getActiveDashTrails = "(() => Doc.ActiveDashboard?.myTrails)"; + const getActiveDashTrails = "Doc.ActiveDashboard?.myTrails"; return [ { title: "Dashboards", target: this.setupDashboards(doc, "myDashboards"), icon: "desktop", }, { title: "Search", target: this.setupSearcher(doc, "mySearcher"), icon: "search", }, |