From 06f4431523e988c790faa9abf5cef8a30c6dfe35 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 13 Sep 2022 20:52:48 -0400 Subject: fixed default name for new dashboard --- src/client/views/DashboardView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx index d1926951d..6415601f1 100644 --- a/src/client/views/DashboardView.tsx +++ b/src/client/views/DashboardView.tsx @@ -268,7 +268,7 @@ export class DashboardView extends React.Component { _backgroundGridShow: true, title: `Untitled Tab 1`, }; - const title = name ?? `Dashboard ${dashboardCount}`; + const title = name ? name : `Dashboard ${dashboardCount}`; const freeformDoc = Doc.GuestTarget || Docs.Create.FreeformDocument([], freeformOptions); const dashboardDoc = Docs.Create.StandardCollectionDockingDocument([{ doc: freeformDoc, initialWidth: 600 }], { title: title }, id, 'row'); freeformDoc.context = dashboardDoc; -- cgit v1.2.3-70-g09d2