Skip to content

Commit 4050387

Browse files
committed
Fix wack typescript error
1 parent 2089f0f commit 4050387

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
# https://pnpm.io/continuous-integration#github-actions
17-
- uses: pnpm/action-setup@v3
18-
with:
19-
version: 8
20-
- name: Use Node.js 20
17+
- uses: pnpm/action-setup@v4
18+
- name: Use Node.js 22
2119
uses: actions/setup-node@v4
2220
with:
23-
node-version: 20
21+
node-version: 22
2422
cache: "pnpm"
2523
- run: pnpm install
2624
- run: pnpm build

components/modals/calendarModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const CalendarForm: Component<{ onChange: (form: FormData) => void }> = ({ onCha
9191

9292
useEffect(() => {
9393
onChange(form)
94-
}, [form])
94+
}, [form, onChange])
9595

9696
const defaultType = { value: "*", label: "Alle" }
9797
const eventTypes: EventType[] = ["bedpres", "social", "workshop", "other"]

components/select/select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Select: Component<SelectProps> = ({
3434
defaultSelectedKeys={defaultItem}
3535
{...props}>
3636
{items.map(({ value, label }) => (
37-
<SelectItem key={value} value={value}>
37+
<SelectItem key={value}>
3838
{label}
3939
</SelectItem>
4040
))}

0 commit comments

Comments
 (0)