diff --git a/frontend/src/view-file-text.js b/frontend/src/view-file-text.js index c018efa2da..d1e60122a3 100644 --- a/frontend/src/view-file-text.js +++ b/frontend/src/view-file-text.js @@ -100,6 +100,7 @@ class ViewFileText extends React.Component { getParticipants = () => { seafileAPI.listFileParticipants(repoID, filePath).then((res) => { const participants = res.data.participant_list; + if (participants.length === 0) return; this.setState({ participants: participants }); this.isParticipant = participants.every((participant) => { return participant.email == username;