mirror of
https://github.com/outline/outline.git
synced 2026-12-03 10:00:13 +03:00
Do not render properties div if none
This commit is contained in:
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) => (
|
||||
|
||||
Reference in new issue
Block a user