Fix document tree uses actual directory name, not metadata name
The `currentPath` is from `Document.path`, which consists of metadata names.
Changes
1 changed files
(+1/-1)
-
-
);
}
-
const defaultOpened = currentPath[0] === value.directory.name;
+
const defaultOpened = currentPath[0] === value.metadata.name;
return (
<li lang={value.metadata.language ?? undefined}>
- Authored by
-
Shota FUJI
- Authored at
-
- Committed by
-
Shota FUJI
- Committed at
-
- Signature
-
View
- Object name
- bf4a2248538647e3bd260a4bc4c5e420d94e1619
- Parent
-
8bc70dc6
- Tab width
-