diff --git a/frontend/src/components/dialog/edit-filetag-dialog.js b/frontend/src/components/dialog/edit-filetag-dialog.js index 6dc5709c42..14114fa83d 100644 --- a/frontend/src/components/dialog/edit-filetag-dialog.js +++ b/frontend/src/components/dialog/edit-filetag-dialog.js @@ -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; } diff --git a/frontend/src/components/dirent-detail/detail-list-view.js b/frontend/src/components/dirent-detail/detail-list-view.js index 5afeb07f55..28461174d1 100644 --- a/frontend/src/components/dirent-detail/detail-list-view.js +++ b/frontend/src/components/dirent-detail/detail-list-view.js @@ -94,7 +94,7 @@ class DetailListView extends React.Component { {gettext('Tags')}