diff --git a/frontend/src/components/content_value/ContentEntryEditor.vue b/frontend/src/components/content_value/ContentEntryEditor.vue index 08213a0..fc06562 100644 --- a/frontend/src/components/content_value/ContentEntryEditor.vue +++ b/frontend/src/components/content_value/ContentEntryEditor.vue @@ -23,7 +23,7 @@ const props = defineProps({ type: [String, Number], }, value: { - type: String, + type: [String, Array], }, fieldLabel: { type: String, diff --git a/frontend/src/components/content_value/ContentValueHash.vue b/frontend/src/components/content_value/ContentValueHash.vue index 6263dab..9e3969b 100644 --- a/frontend/src/components/content_value/ContentValueHash.vue +++ b/frontend/src/components/content_value/ContentValueHash.vue @@ -15,7 +15,7 @@ import IconButton from '@/components/common/IconButton.vue' import ContentEntryEditor from '@/components/content_value/ContentEntryEditor.vue' import Edit from '@/components/icons/Edit.vue' import FormatSelector from '@/components/content_value/FormatSelector.vue' -import { decodeRedisKey } from '@/utils/key_convert.js' +import { decodeRedisKey, nativeRedisKey } from '@/utils/key_convert.js' import ContentSearchInput from '@/components/content_value/ContentSearchInput.vue' import { formatBytes } from '@/utils/byte_convert.js' import copy from 'copy-text-to-clipboard' @@ -140,7 +140,7 @@ const valueColumn = computed(() => ({ // return !!~row.v.indexOf(value.toString()) // }, render: (row) => { - const val = row.dv || decodeRedisKey(row.v) + const val = row.dv || nativeRedisKey(row.v) if (isCode.value) { return h('pre', { class: 'pre-wrap' }, val) }