Skip to content

Commit

Permalink
fix: normalize reactivity state type (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Sep 23, 2024
1 parent 7b251eb commit c2381b6
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 @@ -57,7 +57,7 @@ const normalizedDisplayedKey = computed(() => normalizedPath.value[normalizedPat
// normalized display value
const normalizedDisplayedValue = computed(() => {
const directlyDisplayedValueMap = ['Reactive']
const extraDisplayedValue = (props.data as InspectorCustomState)?._custom?.stateTypeName || props.data?.stateTypeName
const extraDisplayedValue = (props.data.value as InspectorCustomState)?._custom?.stateTypeName || props.data?.stateTypeName
if (directlyDisplayedValueMap.includes(extraDisplayedValue as string)) {
return extraDisplayedValue
}
Expand Down

0 comments on commit c2381b6

Please sign in to comment.