Exclude deactivated owners from asset table picker
The inline owner picker on the assets table queried people without a state filter, so deactivated profiles remained selectable as owners. Restrict it to ACTIVE and PENDING to match the other owner pickers, keeping pending members assignable while dropping deactivated ones. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -37,7 +37,7 @@ export function PeopleCell(props: Props) {
|
|||||||
query={peopleQuery}
|
query={peopleQuery}
|
||||||
variables={{
|
variables={{
|
||||||
organizationId: props.organizationId,
|
organizationId: props.organizationId,
|
||||||
filter: { contractEnded: false },
|
filter: { contractEnded: false, states: ["ACTIVE", "PENDING"] },
|
||||||
}}
|
}}
|
||||||
items={data =>
|
items={data =>
|
||||||
data.organization?.profiles?.edges.map(edge => edge.node) ?? []}
|
data.organization?.profiles?.edges.map(edge => edge.node) ?? []}
|
||||||
|
|||||||
Reference in New Issue
Block a user