Skip to content

Commit c2381b6

Browse files
authored
fix: normalize reactivity state type (#617)
1 parent 7b251eb commit c2381b6

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
@@ -57,7 +57,7 @@ const normalizedDisplayedKey = computed(() => normalizedPath.value[normalizedPat
5757
// normalized display value
5858
const normalizedDisplayedValue = computed(() => {
5959
const directlyDisplayedValueMap = ['Reactive']
60-
const extraDisplayedValue = (props.data as InspectorCustomState)?._custom?.stateTypeName || props.data?.stateTypeName
60+
const extraDisplayedValue = (props.data.value as InspectorCustomState)?._custom?.stateTypeName || props.data?.stateTypeName
6161
if (directlyDisplayedValueMap.includes(extraDisplayedValue as string)) {
6262
return extraDisplayedValue
6363
}

0 commit comments

Comments
 (0)