Skip to content

Commit af6abb8

Browse files
author
vikasrohit
authored
Merge pull request #3471 from appirio-tech/hotfix/fix-when-updatedby-m2m
[HOTFIX] [PROD] fix when updatedBy m2m
2 parents 445f0f1 + 5cfd589 commit af6abb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/projects/actions/loadProjects.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ const getProjectsWithMembers = (dispatch, getState, criteria, pageNum) => {
5858

5959
})
6060
// this is to remove any nulls from the list (dev had some bad data)
61-
_.remove(userIds, i => !i)
61+
// in particular, remove negative userId which are related to M2M users
62+
_.remove(userIds, i => !i || i < 0)
6263
// return if there are no userIds to retrieve, empty result set
6364
if (!userIds.length)
6465
resolve(true)

0 commit comments

Comments
 (0)