Skip to content

Commit c606047

Browse files
authored
[Code] fix a tree expanding problem (#33766)
1 parent a2e7045 commit c606047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/code/public/components/file_tree/file_tree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class CodeFileTree extends React.Component<Props> {
242242
}
243243

244244
private isPathOpen(path: string) {
245-
return this.props.openedPaths.some(p => p.startsWith(path));
245+
return this.props.openedPaths.includes(path);
246246
}
247247
}
248248

0 commit comments

Comments
 (0)