mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Fix: Pass all Template Arguments on BugReporter
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user