Skip to content

Commit ea427f6

Browse files
committed
add empty object as target for Object.assign
1 parent 6adcb6e commit ea427f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default class ObsidianFunctionPlot extends Plugin {
3131
el.classList.add('functionplot')
3232
// parse yaml for bounds and functions to plot
3333
const config: HeaderOptions = Object.assign(
34+
{},
3435
DEFAULT_HEADER_OPTIONS,
3536
// yaml parse of first occurence of ---...--- or empty string
3637
parseYaml((source.match(/-{3,}([^]+)-{3,}/) ?? ['', ''])[1])

0 commit comments

Comments
 (0)