Skip to content

Commit bfbfc1a

Browse files
authored
Fix collapse/expand in the sidebar (#272)
Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>
1 parent 7347e04 commit bfbfc1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/sidebar/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const Sidebar = withStyles((theme: Theme) => ({
107107

108108
const getAllIds = (edges) => {
109109
const allIds = [];
110-
const fields1 = edges.filter((e) => e.node.fields.title)
110+
const fields1 = edges.filter((e) => e.node.fields?.title)
111111
.map((e) => e.node.fields)
112112
.filter((e) => e.level === 1);
113113
fields1.forEach((e) => allIds.push(e.id));

0 commit comments

Comments
 (0)