Skip to content

Commit

Permalink
fix: Property lines now correctly stringify arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Sep 6, 2024
1 parent df7f7f3 commit 9a27da8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/view/ui/PropertyLine.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script lang="ts">
import type { Monster } from "index";
import type { Monster } from "../../../index";
import { Notice } from "obsidian";
import type { PropertyItem } from "src/layouts/layout.types";
import { slugify, stringify } from "src/util/util";
import type { PropertyItem } from "../../layouts/layout.types";
import { slugify, stringify } from "../../util/util";
import TextContentHolder from "./TextContentHolder.svelte";
export let monster: Monster;
export let item: PropertyItem;
let property = stringify(monster[item.properties[0]]);
let property = stringify(monster[item.properties[0]], 0, ", ", false);
let display = item.display ?? item.properties[0];
if (item.callback) {
Expand Down

0 comments on commit 9a27da8

Please sign in to comment.