|
|
@ -494,7 +494,7 @@ export const FileExplorer = (props: FileExplorerProps) => { |
|
|
|
if (!state.expandPath.includes(path)) { |
|
|
|
if (!state.expandPath.includes(path)) { |
|
|
|
expandPath = [...state.expandPath, path] |
|
|
|
expandPath = [...state.expandPath, path] |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
expandPath = state.expandPath.filter(key => !key.startsWith(path)) |
|
|
|
expandPath = state.expandPath.filter(key => key && (typeof key === 'string') && !key.startsWith(path)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setState(prevState => { |
|
|
|
setState(prevState => { |
|
|
|