Skip to content

Commit 4bcbca9

Browse files
authored
[Code] fix load file tree by refresh (#32280)
1 parent cd1104e commit 4bcbca9

File tree

1 file changed

+1
-3
lines changed
  • x-pack/plugins/code/public/sagas

1 file changed

+1
-3
lines changed

x-pack/plugins/code/public/sagas/file.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ function* handleFetchRepoTree(action: Action<FetchRepoTreePayload>) {
4545
try {
4646
const { uri, revision, path, parents, isDir } = action.payload!;
4747
if (path) {
48-
if (isDir) {
49-
yield call(fetchPath, { uri, revision, path, parents, isDir });
50-
}
48+
yield call(fetchPath, { uri, revision, path, parents, isDir });
5149
} else {
5250
yield call(fetchPath, action.payload!);
5351
}

0 commit comments

Comments
 (0)