add event record calendar to record list
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user