|
|
@ -673,7 +673,7 @@ const fetchDirectoryContent = (state: BrowserState, payload: { fileTree, path: s |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (payload.path === '/') { |
|
|
|
if (payload.path === '/') { |
|
|
|
let files = normalize(payload.fileTree, payload.path, payload.type) |
|
|
|
const files = normalize(payload.fileTree, payload.path, payload.type) |
|
|
|
return { [state.mode]: files } |
|
|
|
return { [state.mode]: files } |
|
|
|
} else if (payload.path === state.mode) { |
|
|
|
} else if (payload.path === state.mode) { |
|
|
|
let files = normalize(payload.fileTree, payload.path, payload.type) |
|
|
|
let files = normalize(payload.fileTree, payload.path, payload.type) |
|
|
|