Skip to content

Commit

Permalink
Skip project members that have no user object (#344)
Browse files Browse the repository at this point in the history
Co-authored-by: Sal Tijerina <[email protected]>
  • Loading branch information
2 people authored and wesleyboar committed Jan 7, 2022
1 parent 6c182a1 commit 525fc34
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ const DataFilesProjectMembers = ({
isTransferring ? 'transfer-list' : 'addremove-list'
}`;

const existingMembers = members.filter(member => member.user);

return (
<div styleName="root">
<Label className="form-field__label" size="sm">
Expand Down Expand Up @@ -210,7 +212,7 @@ const DataFilesProjectMembers = ({
</div>
<InfiniteScrollTable
tableColumns={isTransferring ? transferColumns : columns}
tableData={members}
tableData={existingMembers}
styleName={listStyle}
columnMemoProps={[loading, mode, transferUser]}
/>
Expand Down

0 comments on commit 525fc34

Please sign in to comment.