Skip to content

Commit

Permalink
fix(client): set fallback display value for empty string-type state
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Mar 20, 2024
1 parent 3ab6600 commit c386c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/applet/src/components/state/StateFieldViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const normalizedDisplayedValue = computed(() => {
}
else {
const _value = type.value === 'custom' && !(props.data.value as InspectorCustomState)._custom?.type ? `"${displayedValue.value}"` : displayedValue.value
const _value = type.value === 'custom' && !(props.data.value as InspectorCustomState)._custom?.type ? `"${displayedValue.value}"` : (displayedValue.value === '' ? `""` : displayedValue.value)
const result = `<span class="${type.value}-state-type">${_value}</span>`
if (extraDisplayedValue)
Expand Down

0 comments on commit c386c66

Please sign in to comment.