This PR fixes a bug in the Agenda component where changes to the items prop do not trigger a re-render when the selectedDay remains the same. As a result, the component displays stale or outdated reservations that do not reflect the current data.
The fix is to simply set state with a new array reference using the spread operator.
This PR fixes a bug in the Agenda component where changes to the items prop do not trigger a re-render when the selectedDay remains the same. As a result, the component displays stale or outdated reservations that do not reflect the current data.
The fix is to simply set state with a new array reference using the spread operator.