From fcba927edfb4ae02f1a40014aefad9689a02c5c4 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 14 Sep 2022 17:50:11 -0400 Subject: fixed problem where dashboard's myTrails is a promise causing a crash. fixed with prefetchProxy --- src/client/views/DashboardView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2