Skip to content

Commit

Permalink
fix: Creature notes no longer overwrite codeblock parameters (close #243
Browse files Browse the repository at this point in the history
)
  • Loading branch information
valentine195 committed Aug 13, 2023
1 parent 33b1a44 commit 78fa44e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/view/statblock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export default class StatBlockRenderer extends MarkdownRenderChild {
);
if (file && file instanceof TFile) {
const cache = await app.metadataCache.getFileCache(file);
Object.assign(built, fastCopy(cache.frontmatter) ?? {});
Object.assign(
built,
fastCopy(cache.frontmatter) ?? {},
this.params
);
}
}
if ("image" in built) {
Expand Down

0 comments on commit 78fa44e

Please sign in to comment.