fix: add templateId default to issue creation paths
- parser.ts: Add templateId: null to default BeadIssue - read-issues.ts: Add templateId: null when reading issues - swarm-workspace.tsx: Update mock data with templateId
This commit is contained in:
parent
e69efdf5e1
commit
784fe6e88f
3 changed files with 19 additions and 8 deletions
|
|
@ -45,6 +45,7 @@ function normalizeIssue(raw: ParseableBeadIssue): BeadIssue {
|
|||
priority: typeof raw.priority === 'number' ? raw.priority : 2,
|
||||
issue_type: (raw.issue_type ?? 'task') as BeadIssue['issue_type'],
|
||||
assignee: typeof raw.assignee === 'string' ? raw.assignee : null,
|
||||
templateId: null,
|
||||
owner: typeof raw.owner === 'string' ? raw.owner : null,
|
||||
labels: Array.isArray(raw.labels) ? raw.labels.filter((x): x is string => typeof x === 'string') : [],
|
||||
dependencies: normalizeDependencies(raw.dependencies),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue