Fix: Pass all Template Arguments on BugReporter

This commit is contained in:
Youwes09
2026-06-10 13:12:25 -05:00
parent cb3d8d64fa
commit 1e159bbd73
2 changed files with 46 additions and 6 deletions
@@ -10,6 +10,8 @@
buildSettingsBlock,
buildIssueUrl,
type ReportType,
type BugFields,
type FeatureFields,
} from './lib/bugReport'
interface Props { onClose: () => void }
@@ -92,7 +94,10 @@
async function handleOpen() {
const settingsBlock = buildSettingsBlock([...selectedKeys])
const url = buildIssueUrl(reportType, settingsBlock, title, serverVersion)
const fields: BugFields | FeatureFields = reportType === 'bug'
? { description, steps, expected, actual }
: { problem, solution, alternatives }
const url = buildIssueUrl(reportType, settingsBlock, title, fields, serverVersion)
await platformService.openExternal(url)
}