feat(scheduling): resolve the issue discovery rule per organisation

This commit is contained in:
sam committed 2026-10-27 10:38:00 +11:00
1 parent b8e080301c
commit 8150df8d81
12 files changed
+168 -35

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ export function validateSchedulingPolicy(value: unknown): FieldIssue[] {
const policy = (value ?? {}) as SchedulingDraft;
const issues: FieldIssue[] = [];
const ms = parseGoDuration(policy.poll_interval ?? "");
if (ms === null || ms <= 0)
if (policy.poll_interval && (ms === null || ms <= 0))
issues.push({
path: "poll_interval",
label: "Poll interval",