Skip to content

Commit

Permalink
fix: property block now recursively stringifies
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 4, 2022
1 parent 036c262 commit fef806f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view/ui/PropertyLine.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import type { PropertyItem } from "src/data/constants";
import type StatBlockPlugin from "src/main";
import { getContext } from "svelte";
import { stringify } from "../utils";
import DiceHolder from "./DiceHolder.svelte";
Expand All @@ -12,7 +13,7 @@
const plugin = getContext<StatBlockPlugin>("plugin");
let property = monster[item.properties[0]] as string;
let property = stringify(monster[item.properties[0]]);
let display = item.display ?? item.properties[0];
if (item.callback) {
Expand Down

0 comments on commit fef806f

Please sign in to comment.