add event record calendar to record list

This commit is contained in:
Timi
2026-08-12 19:57:41 +08:00
parent 44a6153413
commit 6463abd93b
8 changed files with 140 additions and 11 deletions
+6 -1
View File
@@ -61,7 +61,12 @@ function parseTransitionDepth(value: unknown): number | undefined {
return undefined;
}
const depth = Number(value);
const text = value.trim();
if (!text) {
return undefined;
}
const depth = Number(text);
if (!Number.isInteger(depth) || depth < 0 || 20 < depth) {
return undefined;
}