Skip to content

Conversation

@nathan01100010
Copy link
Contributor

Fixes #91 with alternative handling of events-specific errors

Screenshot 2025-11-24 at 8 48 46 PM

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes error handling for the events section to prevent errors from disabling the entire main page. The changes move event-specific error handling from the main component level to a dedicated function, allowing the rest of the page to render even when events fail to load.

Key Changes:

  • Created a new eventsSection function to encapsulate events display logic and error handling
  • Moved conditional rendering (loading, error, no events) from the main component into the eventsSection function
  • Replaced inline events rendering with a call to eventsSection

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joschahenningsen
Copy link
Member

Thanks! Can you check out the comments copilot made?

Copy link
Member

@joschahenningsen joschahenningsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@joschahenningsen joschahenningsen merged commit 8b3cd3b into TUM-Dev:master Nov 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error handling disables almost all website functionality if events list is empty

2 participants