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:
Émile Ré
2026-07-28 17:14:34 +02:00
parent 4a276e3ef7
commit 99c3235b46

View File

@@ -37,7 +37,7 @@ export function PeopleCell(props: Props) {
query={peopleQuery}
variables={{
organizationId: props.organizationId,
filter: { contractEnded: false },
filter: { contractEnded: false, states: ["ACTIVE", "PENDING"] },
}}
items={data =>
data.organization?.profiles?.edges.map(edge => edge.node) ?? []}