aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DashboardView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-09 23:24:34 -0400
committerbobzel <zzzman@gmail.com>2022-06-09 23:24:34 -0400
commitab5e48a2340f06628fc22d1267d081de9dbc572f (patch)
tree54fa3e4d9fb2697d9b2caae41ba01d91956dab74 /src/client/views/DashboardView.tsx
parent43968431d3c94cea07f06421d29ac0f190c55cde (diff)
fixed up creating dashboard icons to work with pdfs in freeformviews with a grid. no idea why having a grid breaks thrings.
Diffstat (limited to 'src/client/views/DashboardView.tsx')
-rw-r--r--src/client/views/DashboardView.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx
index b08151c0f..e003968d6 100644
--- a/src/client/views/DashboardView.tsx
+++ b/src/client/views/DashboardView.tsx
@@ -36,9 +36,7 @@ export class DashboardView extends React.Component {
</div>
<div className="all-dashboards">
{myDashboards.map((dashboard) => {
- const url = ImageCast((dashboard.thumb as Doc)?.data)?.url;
- const ext = url ? extname(url.href):"";
- const href = url?.href.replace(ext, "_m"+ ext); // need to choose which resolution image to show. options are _s, _m, _l, _o (small/medium/large/original)
+ const href = ImageCast((dashboard.thumb as Doc)?.data)?.url.href;
return <div className="dashboard-container" key={dashboard[Id]} onClick={e => this.clickDashboard(e, dashboard)}>
<img src={href ?? "https://media.istockphoto.com/photos/hot-air-balloons-flying-over-the-botan-canyon-in-turkey-picture-id1297349747?b=1&k=20&m=1297349747&s=170667a&w=0&h=oH31fJty_4xWl_JQ4OIQWZKP8C6ji9Mz7L4XmEnbqRU="}></img>
<div className="title"> {StrCast(dashboard.title)} </div>