Skip to content

Commit d15f370

Browse files
committed
fix: update ContextSelect options to use filteredPeriods for accurate selection
1 parent 8ba719e commit d15f370

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/Periods/PeriodsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ const PeriodsPage: React.FC = () => {
172172
/>
173173
<ContextSelect
174174
label="Period"
175-
options={periods}
175+
options={filteredPeriods}
176176
value={selectedPeriod ? selectedPeriod.periodId : null}
177-
onSelect={id => setSelectedPeriod(id ? periods.find(p => p.periodId === id) ?? null : null)}
177+
onSelect={id => setSelectedPeriod(id ? filteredPeriods.find(p => p.periodId === id) ?? null : null)}
178178
loading={loading}
179179
getOptionLabel={p => p.description}
180180
getOptionValue={p => p.periodId}

0 commit comments

Comments
 (0)