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
|
|
@ -70,6 +70,7 @@ function normalizeBdIssue(raw: unknown): BeadIssue | null {
|
|||
priority: typeof data.priority === 'number' ? data.priority : 2,
|
||||
issue_type: typeof data.issue_type === 'string' ? data.issue_type : 'task',
|
||||
assignee: typeof data.assignee === 'string' ? data.assignee : null,
|
||||
templateId: null,
|
||||
owner: typeof data.owner === 'string' ? data.owner : null,
|
||||
labels: Array.isArray(data.labels) ? data.labels.filter((x): x is string => typeof x === 'string') : [],
|
||||
dependencies: normalizeDependencies(data.dependencies),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue