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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user