Skip to content

Commit

Permalink
[fix] regarding [Bug]: Error on missing header #13
Browse files Browse the repository at this point in the history
  • Loading branch information
leonhma committed Jul 3, 2022
1 parent 4eec083 commit da91f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class ObsidianFunctionPlot extends Plugin {
const config: HeaderOptions = Object.assign(
{},
DEFAULT_HEADER_OPTIONS,
parseYaml(header.match(/-{3,}([^]+?)-{3,}/)[1] || '')
header ? parseYaml(header.match(/-{3,}([^]+?)-{3,}/)[1] || '') : {}
)

// prepare options for call to FunctionPlotya
Expand Down

0 comments on commit da91f65

Please sign in to comment.