diff options
author | bobzel <zzzman@gmail.com> | 2022-09-14 17:50:11 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-14 17:50:11 -0400 |
commit | fcba927edfb4ae02f1a40014aefad9689a02c5c4 (patch) | |
tree | 9b8d3d173219219a3f8bec88dd115183c2d5d3ad /src | |
parent | f7352486af914a731bd4c16b9241c5b911ebe657 (diff) |
fixed problem where dashboard's myTrails is a promise causing a crash. fixed with prefetchProxy
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/DashboardView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx index 12fc3133d..f43500fc3 100644 --- a/src/client/views/DashboardView.tsx +++ b/src/client/views/DashboardView.tsx @@ -5,6 +5,7 @@ import * as React from 'react'; import { DataSym, Doc, DocListCast, DocListCastAsync } from '../../fields/Doc'; import { Id } from '../../fields/FieldSymbols'; import { List } from '../../fields/List'; +import { PrefetchProxy } from '../../fields/Proxy'; import { listSpec } from '../../fields/Schema'; import { ScriptField } from '../../fields/ScriptField'; import { Cast, DocCast, ImageCast, StrCast } from '../../fields/Types'; @@ -322,7 +323,7 @@ export class DashboardView extends React.Component { system: true, explainer: 'All of the trails that you have created will appear here.', }; - dashboardDoc.myTrails = DocUtils.AssignScripts(Docs.Create.TreeDocument([], reqdOpts), { treeViewChildDoubleClick: 'openPresentation(documentView.rootDoc)' }); + dashboardDoc.myTrails = new PrefetchProxy(DocUtils.AssignScripts(Docs.Create.TreeDocument([], reqdOpts), { treeViewChildDoubleClick: 'openPresentation(documentView.rootDoc)' })); // open this new dashboard Doc.ActiveDashboard = dashboardDoc; |