GetSelectedActivityYear

Function: getSelectedActivityYear()

[object Object]

Defined in: routes/admin/statistics/statistics.handlers.tsx:279

Reads the selected year of the activity distribution from the URL. Falls back to the current committee year when it has data, otherwise to the most recent year with data.

Parameters

searchParams

[object Object]

The page's search parameters.

years

number[]

The years that have a distribution.

committeeYear

[object Object]

The current committee year.

Returns

number | null

The selected year, or null when no year has data.

On this page