feat(scheduling): resolve the issue discovery rule per organisation
This commit is contained in:
1 parent
b8e080301c
commit
8150df8d81
12 files changed
+168
-35
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user