Skip to content

Commit b758065

Browse files
fix : optional parameters added
1 parent 355523e commit b758065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/prompts/instructions/instructions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function fetchInstructions(text: string, detail: InstructionsDetail
2222
return await createModeInstructions(detail.context)
2323
}
2424
case "fix_mermaid": {
25-
return await createMermaidFixInstructions(detail.error, detail.code)
25+
return await createMermaidFixInstructions(detail.error || "", detail.code || "")
2626
}
2727
default: {
2828
return ""

0 commit comments

Comments
 (0)