Skip to content

Commit c386c66

Browse files
committed
fix(client): set fallback display value for empty string-type state
1 parent 3ab6600 commit c386c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/applet/src/components/state/StateFieldViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const normalizedDisplayedValue = computed(() => {
6868
}
6969
7070
else {
71-
const _value = type.value === 'custom' && !(props.data.value as InspectorCustomState)._custom?.type ? `"${displayedValue.value}"` : displayedValue.value
71+
const _value = type.value === 'custom' && !(props.data.value as InspectorCustomState)._custom?.type ? `"${displayedValue.value}"` : (displayedValue.value === '' ? `""` : displayedValue.value)
7272
const result = `<span class="${type.value}-state-type">${_value}</span>`
7373
7474
if (extraDisplayedValue)

0 commit comments

Comments
 (0)