We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ba719e commit d15f370Copy full SHA for d15f370
1 file changed
src/pages/Periods/PeriodsPage.tsx
@@ -172,9 +172,9 @@ const PeriodsPage: React.FC = () => {
172
/>
173
<ContextSelect
174
label="Period"
175
- options={periods}
+ options={filteredPeriods}
176
value={selectedPeriod ? selectedPeriod.periodId : null}
177
- onSelect={id => setSelectedPeriod(id ? periods.find(p => p.periodId === id) ?? null : null)}
+ onSelect={id => setSelectedPeriod(id ? filteredPeriods.find(p => p.periodId === id) ?? null : null)}
178
loading={loading}
179
getOptionLabel={p => p.description}
180
getOptionValue={p => p.periodId}
0 commit comments