Skip to content

Commit d85c85a

Browse files
committed
bugfixes
1 parent 8c74c45 commit d85c85a

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"allow": [
44
"Bash(mkdir:*)",
55
"Bash(npm run dev:*)",
6-
"Bash(npm install:*)"
6+
"Bash(npm install:*)",
7+
"mcp__ide__getDiagnostics"
78
],
89
"deny": []
910
}

src/routes/[room]/+page.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,6 @@
197197
padding: 40px;
198198
color: #dc3545;
199199
}
200-
.error a {
201-
color: #007bff;
202-
text-decoration: none;
203-
}
204200
205201
.booking-button-section {
206202
text-align: center;

src/routes/[room]/booking/+page.svelte

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import type { BookingItem } from '$lib/notion';
55
import type { PageData, ActionData } from './$types';
66
7+
// Extended type with id for booking items
8+
type BookingItemWithId = BookingItem & { id: string };
9+
710
let { data, form }: { data: PageData; form: ActionData } = $props();
811
912
const currentItems: BookingItem[] = data.currentItems;
@@ -110,7 +113,8 @@
110113
}
111114
112115
async function handleEndMeeting() {
113-
if (!currentItems[0]?.id) return;
116+
const currentItem = currentItems[0] as BookingItemWithId;
117+
if (!currentItem || !currentItem.id) return;
114118
115119
isEndingMeeting = true;
116120
@@ -121,8 +125,8 @@
121125
'Content-Type': 'application/json'
122126
},
123127
body: JSON.stringify({
124-
pageId: currentItems[0].id,
125-
startTime: currentItems[0].from.toISOString()
128+
pageId: currentItem.id,
129+
startTime: currentItem.from.toISOString()
126130
})
127131
});
128132

0 commit comments

Comments
 (0)