fix(calendar): show unscheduled markers on future days off
This commit is contained in:
@@ -52,7 +52,7 @@ export function CalendarHeatmap({
|
||||
const [customRange, setCustomRange] = useState<{ from: string; to: string } | null>(null);
|
||||
const [rangeError, setRangeError] = useState("");
|
||||
const latestDate =
|
||||
allDays.findLast((day) => day.state !== "future")?.date ??
|
||||
allDays.findLast((day) => !(day.future ?? day.state === "future"))?.date ??
|
||||
allDays.at(-1)?.date;
|
||||
// Inspecting a square changes selection, not the window. Only an external
|
||||
// date outside the visible preset needs a new anchor to bring it into view.
|
||||
|
||||
Reference in New Issue
Block a user