Skip to content

Commit

Permalink
fix frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 16, 2025
1 parent 8e699d6 commit c48da7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/src/docsnotebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function activateNotebookExecutor(state: ExtensionState) {

const firstCell = notebook.cellAt(0)
const frontMatterText = firstCell?.document?.getText()
const { genaiscript: frontmatter } =
const { genaiscript: frontmatter = {} } =
frontmatterTryParse(frontMatterText)?.value ??
YAMLTryParse(frontMatterText) ??
{}
Expand Down

0 comments on commit c48da7e

Please sign in to comment.