Retain joins in hour on realtime update

This commit is contained in:
ryan 2025-02-08 23:47:44 -08:00
parent abe584b1c1
commit 1fe2d76973

View File

@ -26,7 +26,10 @@ export default function RealtimeDayPage({ initialDay }) {
const prevHours = day.hours;
const newHours = prevHours.map((hour) => {
if (hour.id === updatedHour.id) {
return updatedHour;
return {
...updatedHour,
category: hour.category,
};
}
return hour;
});