Skip to content

Commit 96f4b44

Browse files
committed
Fixed program select not reseting year
1 parent 074b756 commit 96f4b44

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/pages/setup/ProgramSelectScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function ProgramSelectScreen() {
5252
setTreeView(!treeView)
5353
setSelectedBranches([])
5454
}} />
55-
<Label htmlFor="terms">Advanced mode</Label>
55+
<Label htmlFor="terms">Multiselect mode</Label>
5656
</div>
5757
<Button variant={"secondary"} onClick={previousStep}>Back</Button>
5858
<Button disabled={selectedBranches.length === 0 || saveSelectedBranchesMutation.isPending} onClick={onConformPressed}>

src/components/programSelect/DropdownProgramSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function DropdownProgramSelect({
6767
value={selectedProgramme?.id}
6868
onValueChange={(selectedP) => {
6969
setSelectedProgramme(programms.find((p) => p.id === selectedP)!);
70-
setSelectedYear(undefined);
70+
setSelectedYear(null as unknown as undefined);
7171
setSelectedBranches([]);
7272
}}
7373
>

0 commit comments

Comments
 (0)