diff options
author | bobzel <zzzman@gmail.com> | 2022-09-14 11:12:29 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-14 11:12:29 -0400 |
commit | 65026fdb919132f6046b45fc3b0490df2e5ad2fe (patch) | |
tree | 18c5261178ddbfca952056d37af29de38f033eea /src/client/views/DashboardView.tsx | |
parent | d06a5b853557a5447ec308569443899c9064daf6 (diff) |
changed docking view thumbnails to be imagefields, not docs. allowed docking view to be nested to avoid crashes before when they became nested. fixed dropping docs with dropAction of 'alias' to never remove them. fixed clearing startLink to not deselect when link is already started
Diffstat (limited to 'src/client/views/DashboardView.tsx')
-rw-r--r-- | src/client/views/DashboardView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx index 6415601f1..12fc3133d 100644 --- a/src/client/views/DashboardView.tsx +++ b/src/client/views/DashboardView.tsx @@ -50,7 +50,7 @@ export class DashboardView extends React.Component { this.selectedDashboardGroup = group; }; - clickDashboard = async (e: React.MouseEvent, dashboard: Doc) => { + clickDashboard = (e: React.MouseEvent, dashboard: Doc) => { if (e.detail === 2) { Doc.AddDocToList(Doc.MySharedDocs, 'viewed', dashboard); Doc.ActiveDashboard = dashboard; @@ -156,7 +156,7 @@ export class DashboardView extends React.Component { </div> <div className="all-dashboards"> {this.getDashboards().map(dashboard => { - const href = ImageCast((dashboard.thumb as Doc)?.data)?.url.href; + const href = ImageCast(dashboard.thumb)?.url.href; return ( <div className="dashboard-container" |