fix available memberships in teamMemberTable
This MR addresses the issue of requested/or rejected memberships appearing in the teamMemberTable
when editing an attribution form which caused the issue raised in dev-requests.
Edited by Orestis Athanasopoulos Antoniou