1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

fix: fixes nested array displaying as object instead of actual value (#2233)

This commit is contained in:
Amir Raminfar
2023-06-02 15:33:59 -07:00
committed by GitHub
parent 88442edee5
commit 38a6a99096
2 changed files with 8 additions and 1 deletions

View File

@@ -13,7 +13,11 @@
<ul class="fields" :class="{ expanded }" @click="expandToggle()">
<li v-for="(value, name) in validValues">
<span class="has-text-grey">{{ name }}=</span
><span class="has-text-weight-bold" v-html="markSearch(value)"></span>
><span class="has-text-weight-bold" v-if="value === null">&lt;null&gt;</span>
<template v-else-if="Array.isArray(value)">
<span class="has-text-weight-bold" v-html="markSearch(JSON.stringify(value))"> </span>
</template>
<span class="has-text-weight-bold" v-html="markSearch(value)" v-else></span>
</li>
<li class="has-text-grey" v-if="Object.keys(validValues).length === 0">all values are hidden</li>
</ul>