We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64b96fc + e996cca commit 8ee559bCopy full SHA for 8ee559b
xp-archive/client/contentTree/contentTreeEntry/NavigationItem.tsx
@@ -22,14 +22,18 @@ export const NavigationItem = ({ entry }: Props) => {
22
23
const entryLocalized = entry.isLocalized || entry.hasLocalizedDescendants;
24
25
+ const onClick = () => {
26
+ if (!entry.isEmpty) {
27
+ setSelectedContentId(entry.id);
28
+ }
29
+ };
30
+
31
return (
32
<TreeItem
33
className={entryLocalized ? '' : style.foggy}
34
itemId={entry.id}
35
label={label}
- onClick={() => {
- setSelectedContentId(entry.id);
- }}
36
+ onClick={onClick}
37
>
38
{entry.numChildren > 0 ? (
39
<NavigationItems path={entry.path} locale={entry.locale} />
0 commit comments