1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

fix dirent key={index} bug (#6754)

This commit is contained in:
Michael An
2024-09-12 15:00:42 +08:00
committed by GitHub
parent ac37e9dc31
commit 631bafe4b1
3 changed files with 6 additions and 2 deletions

View File

@@ -551,6 +551,10 @@ class LibContentView extends React.Component {
};
loadDirentList = (path) => {
this.setState({
isDirentListLoading: true,
direntList: [],
});
let repoID = this.props.repoID;
seafileAPI.listDir(repoID, path, { 'with_thumbnail': true }).then(res => {
let direntList = [];