mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-24 09:03:11 +00:00
style: format após rebase com B155
This commit is contained in:
parent
9780bb23df
commit
bd3ba5c2a5
1 changed files with 12 additions and 11 deletions
|
|
@ -87,17 +87,18 @@ export default async function MunicipalitiesPage({ searchParams }: Municipalitie
|
||||||
...filterFacets.advisorIDs,
|
...filterFacets.advisorIDs,
|
||||||
]),
|
]),
|
||||||
]
|
]
|
||||||
const [advisorSummaries, advisorOptions, leadershipOptions, stateDeputyOptions] = await Promise.all([
|
const [advisorSummaries, advisorOptions, leadershipOptions, stateDeputyOptions] =
|
||||||
isStaffView ? loadAdvisorSummaries(payload, user, advisorIDs) : [],
|
await Promise.all([
|
||||||
// Only the coordinator-only assign-advisors control consumes these.
|
isStaffView ? loadAdvisorSummaries(payload, user, advisorIDs) : [],
|
||||||
isCoordinator ? getEligibleAdvisorOptions(payload, user) : [],
|
// Only the coordinator-only assign-advisors control consumes these.
|
||||||
// All staff edit the Lideranças column (scoped server-side); the leader
|
isCoordinator ? getEligibleAdvisorOptions(payload, user) : [],
|
||||||
// never reaches this page (`gate: noLeader`).
|
// All staff edit the Lideranças column (scoped server-side); the leader
|
||||||
isStaffView ? getEligibleLeadershipOptions(payload, user) : [],
|
// never reaches this page (`gate: noLeader`).
|
||||||
// B157 — the Dobradinhas column is coordinator + candidate only; the
|
isStaffView ? getEligibleLeadershipOptions(payload, user) : [],
|
||||||
// catalog serves the avatar-stack display, the tooltip and the search.
|
// B157 — the Dobradinhas column is coordinator + candidate only; the
|
||||||
canMoveEngagementLevel ? loadStateDeputyOptions(payload, user) : [],
|
// catalog serves the avatar-stack display, the tooltip and the search.
|
||||||
])
|
canMoveEngagementLevel ? loadStateDeputyOptions(payload, user) : [],
|
||||||
|
])
|
||||||
const advisorNamesById = new Map(advisorSummaries.map((advisor) => [advisor.id, advisor]))
|
const advisorNamesById = new Map(advisorSummaries.map((advisor) => [advisor.id, advisor]))
|
||||||
|
|
||||||
const selectedAdvisorIDs = new Set(state.advisors ?? [])
|
const selectedAdvisorIDs = new Set(state.advisors ?? [])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue