Skip to content

Commit e7aaab1

Browse files
committed
fix(component): edit comp with no setup, closes #1427
1 parent 2e14850 commit e7aaab1

File tree

1 file changed

+1
-1
lines changed
  • packages/app-backend-vue3/src/components

1 file changed

+1
-1
lines changed

packages/app-backend-vue3/src/components/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export function editState ({ componentInstance, path, state }: HookPayloads[Hook
266266
if (Object.keys(componentInstance.props).includes(path[0])) {
267267
// Props
268268
target = componentInstance.props
269-
} else if (Object.keys(componentInstance.devtoolsRawSetupState).includes(path[0])) {
269+
} else if (componentInstance.devtoolsRawSetupState && Object.keys(componentInstance.devtoolsRawSetupState).includes(path[0])) {
270270
// Setup
271271
target = componentInstance.devtoolsRawSetupState
272272

0 commit comments

Comments
 (0)