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) => (