mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
Fix li > li DOM nesting warning
This commit is contained in:
@@ -59,11 +59,13 @@ function FilterListPanel({
|
||||
onClickCheckbox={() => onSelectFilter(key, matchingKeys)}
|
||||
color={assignedColor}
|
||||
/>
|
||||
{Object.keys(children).length > 0
|
||||
? Object.entries(children).map((filter) =>
|
||||
{Object.keys(children).length > 0 ? (
|
||||
<ul>
|
||||
{Object.entries(children).map((filter) =>
|
||||
createNodeComponent(filter, depth + 1)
|
||||
)
|
||||
: null}
|
||||
)}
|
||||
</ul>
|
||||
) : null}
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user