Retain joins in hour on realtime update
This commit is contained in:
parent
abe584b1c1
commit
1fe2d76973
@ -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;
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user