Skip to content

Commit

Permalink
Handle undefined default values in input box prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 4, 2024
1 parent 6557d93 commit e8a5bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/src/fragmentcommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function showPromptParametersQuickPicks(
case "number": {
const value = await vscode.window.showInputBox({
title: `Enter value for ${param}`,
value: schema.default.toLocaleString(),
value: schema.default?.toLocaleString(),
prompt: schema.description,
validateInput: (v) =>
isNaN(parseFloat(v))
Expand Down

0 comments on commit e8a5bdf

Please sign in to comment.