diff --git a/assets/components/LogViewer/ComplexLogItem.spec.ts b/assets/components/LogViewer/ComplexLogItem.spec.ts index fd01578b..fcbcb202 100644 --- a/assets/components/LogViewer/ComplexLogItem.spec.ts +++ b/assets/components/LogViewer/ComplexLogItem.spec.ts @@ -53,6 +53,11 @@ describe("", () => { expect(wrapper.find(".array").text()).toContain("b"); }); + test("renders null inside an array without throwing", () => { + const wrapper = mountItem({ tags: ["a", null, "b"] } as any); + expect(wrapper.find(".array").text()).toContain("null"); + }); + test("shows a placeholder when every value is hidden", () => { const visibleKeys = ref(new Map([[["a"], false]])); const wrapper = mountItem({ a: 1 }, visibleKeys); diff --git a/assets/components/LogViewer/ComplexLogItem.vue b/assets/components/LogViewer/ComplexLogItem.vue index e0c9c763..525afcbe 100644 --- a/assets/components/LogViewer/ComplexLogItem.vue +++ b/assets/components/LogViewer/ComplexLogItem.vue @@ -15,7 +15,7 @@ class="after:text-base-content/70 not-last:after:content-[',']" > - +