From ac613101a3979870e85efc08880ebe0d806500db Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 13 Jul 2024 12:15:05 -0400 Subject: [PATCH] Do not render properties div if none --- app/scenes/Document/components/Properties.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/scenes/Document/components/Properties.tsx b/app/scenes/Document/components/Properties.tsx index 8a7bfe5118..3c91cf4c20 100644 --- a/app/scenes/Document/components/Properties.tsx +++ b/app/scenes/Document/components/Properties.tsx @@ -64,6 +64,10 @@ export const Properties = observer( return null; } + if ((document.dataAttributes ?? []).length === 0 && !draftAttribute) { + return null; + } + return ( {document.dataAttributes?.map((dataAttribute) => (