1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +00:00
This commit is contained in:
Michael An
2019-07-01 10:16:12 +08:00
parent 4b86ab0d1b
commit e763ccd175

View File

@@ -100,6 +100,7 @@ class ViewFileText extends React.Component {
getParticipants = () => { getParticipants = () => {
seafileAPI.listFileParticipants(repoID, filePath).then((res) => { seafileAPI.listFileParticipants(repoID, filePath).then((res) => {
const participants = res.data.participant_list; const participants = res.data.participant_list;
if (participants.length === 0) return;
this.setState({ participants: participants }); this.setState({ participants: participants });
this.isParticipant = participants.every((participant) => { this.isParticipant = participants.every((participant) => {
return participant.email == username; return participant.email == username;