diff options
author | bobzel <zzzman@gmail.com> | 2022-09-13 20:52:48 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-13 20:52:48 -0400 |
commit | 06f4431523e988c790faa9abf5cef8a30c6dfe35 (patch) | |
tree | d6105ce11539b64b752fc75c9233af9cde911dda /src | |
parent | 7869b13de37b9d910f455be79f6bf55ecfe49b26 (diff) |
fixed default name for new dashboard
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/DashboardView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |