Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Fix crash on first login & scrollToIndex crash #1031

Merged
merged 5 commits into from Jan 7, 2022
Merged

Commits on Sep 14, 2021

  1. Use package-lock version 2

    shu8 committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    2b3870d View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2022

  1. Handle case where all timetable entries are null

    This fixes the crash on login when you first visit the timetable screen.
    shu8 committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    26cd725 View commit details
    Browse the repository at this point in the history
  2. Remove trailing '/redirect'

    This was added in
    3d7cce6#diff-92485d835e426b7a4ef0a643b8c946ff79948ad6388ef0089a9ba6907ad6562dR62
    but I can't get the login to work without removing it, and the docs seem
    to say that isn't required. It's working on Ethan and my device with
    this change now.
    shu8 committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    9ef0c3a View commit details
    Browse the repository at this point in the history
  3. Update timetable tests

    shu8 committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    8cb136e View commit details
    Browse the repository at this point in the history
  4. Fix scrollToIndex crash

    This was happening when initialScrollIndex > 0 and the cell hadn't
    rendered yet.
    
    We'll now try to re-scroll after a slight delay to allow the cell to
    render.
    
    This also changes the behaviour of auto-scrolling so that only if you
    scroll into the current week will the page auto-scroll to the current
    day. Previously, all weeks started at the current day (e.g., today is
    Tuesday, scroll to next week, and the first day is still Tuesday).
    shu8 committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    d3c7c04 View commit details
    Browse the repository at this point in the history