fix: preserve synchronous Today reconciliation
This commit is contained in:
1 parent
d86e84253a
commit
6fb547e8ce
2 files changed
+6
-5
No files matched your search
@@ -476,15 +476,15 @@
|
||||
refreshMyWorkView();
|
||||
warmTodayOffline();
|
||||
},
|
||||
onRemotePlan: async plan => {
|
||||
onRemotePlan: plan => {
|
||||
if (!planningOwnerLogin) return;
|
||||
latestTodayPlan = plan;
|
||||
const startDayLaunch = window.location.hash === '#/my-work/start-day';
|
||||
await promoteTomorrowIfDue(plan);
|
||||
if (startDayLaunch) {
|
||||
promoteTomorrowIfDue(plan).finally(() => {
|
||||
if (!startDayLaunch) return;
|
||||
window.history.replaceState({}, '', '#/my-work/today');
|
||||
openMobileStartDay();
|
||||
}
|
||||
});
|
||||
todayWork.replacePlanning({
|
||||
capacity_minutes: plan.capacity_minutes ?? null,
|
||||
estimates: plan.estimates || {},
|
||||
|
||||
Reference in new issue
Block a user