Add RRuleDisplay component and clean up unused imports
- Create new RRuleDisplay component for better recurrence rule formatting - Replace Badge with RRuleDisplay in EventCard for improved UX - Remove unused imports across multiple files (CalendarEvent, Badge, Card components) - Remove unused catch parameter in ai-event route
This commit is contained in:
@@ -60,7 +60,7 @@ Rules:
|
||||
const content = data.choices[0].message.content;
|
||||
const parsed = JSON.parse(content);
|
||||
return NextResponse.json(parsed);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return NextResponse.json(
|
||||
{ error: "Failed to parse AI output", raw: data },
|
||||
{ status: 500 },
|
||||
|
||||
Reference in New Issue
Block a user