From 65fc9f38ede58f3ad71a6f8ac8c3847f6d79c8a0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:17:44 +0000 Subject: [PATCH] Fix Item rendering for Structure view type Co-authored-by: estruyf <2900833+estruyf@users.noreply.github.com> --- .../components/Contents/Item.tsx | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/src/dashboardWebView/components/Contents/Item.tsx b/src/dashboardWebView/components/Contents/Item.tsx index 74841042..49f93bc3 100644 --- a/src/dashboardWebView/components/Contents/Item.tsx +++ b/src/dashboardWebView/components/Contents/Item.tsx @@ -250,6 +250,49 @@ export const Item: React.FunctionComponent = ({ ); + } else if (view === DashboardViewType.Structure) { + return ( +
+
+ + + + + + +
+ {pageData.date && ( + + )} + + {draftField && draftField.name && typeof pageData[draftField.name] !== "undefined" && ( + + )} + + +
+
+
+ ); } return null;