Skip to content

Commit 26d611a

Browse files
authored
fix: prevent page broken when data is undefined (#361)
1 parent bbb3021 commit 26d611a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workbench/sidebar/explore/editorTree.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const EditorTree = (props: IOpenEditProps) => {
216216
file.id === current?.tab?.id;
217217
return (
218218
<div
219-
title={`${file.data.path}/${file.name}`}
219+
title={`${file.data?.path}/${file.name}`}
220220
className={classNames(
221221
editorTreeItemClassName,
222222
isActive &&

0 commit comments

Comments
 (0)