Do not render properties div if none

This commit is contained in:
Tom Moor committed 2024-07-27 16:21:41 -04:00
1 parent 5cd0105da8
commit ac613101a3
1 file changed
+4
@@ -64,6 +64,10 @@ export const Properties = observer(
return null;
}
if ((document.dataAttributes ?? []).length === 0 && !draftAttribute) {
return null;
}
return (
<List>
{document.dataAttributes?.map((dataAttribute) => (