We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edfde67 commit 4285053Copy full SHA for 4285053
1 file changed
src/prompts/project-create.ts
@@ -72,8 +72,8 @@ async function promptSourceType(): Promise<SourceType> {
72
async function promptUrl(): Promise<string> {
73
const result = await p.text({
74
message: 'Documentation URL:',
75
- validate: (value: string) => {
76
- if (!value.trim()) {
+ validate: (value) => {
+ if (!value?.trim()) {
77
return 'URL is required.';
78
}
79
@@ -98,8 +98,8 @@ async function promptUrl(): Promise<string> {
98
async function promptGitHub(): Promise<string> {
99
100
message: 'GitHub repository (owner/repo):',
101
102
103
return 'Repository is required.';
104
105
0 commit comments