1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

fix: file tag list bug (#5616)

* fix: file tag list bug

* Feat: add default value
This commit is contained in:
杨国璇
2023-08-30 20:54:00 +08:00
committed by GitHub
parent 3ca8f59eb0
commit 6e9595f33b
4 changed files with 12 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class TagItem extends React.Component {
getRepoTagIdList = () => {
let repoTagIdList = [];
let fileTagList = this.props.fileTagList;
let fileTagList = this.props.fileTagList || [];
repoTagIdList = fileTagList.map((fileTag) => fileTag.repo_tag_id);
return repoTagIdList;
}