Skip to content

Commit bf8ad74

Browse files
committedNov 1, 2024·
fix(kit): add null-safety check on process instance props, #659
1 parent caf113d commit bf8ad74

File tree

1 file changed

+1
-1
lines changed
  • packages/devtools-kit/src/core/component/state

1 file changed

+1
-1
lines changed
 

‎packages/devtools-kit/src/core/component/state/process.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function resolveMergedOptions(
6161
*/
6262
function processProps(instance: VueAppInstance) {
6363
const props: InspectorState[] = []
64-
const propDefinitions = instance.type.props
64+
const propDefinitions = instance?.type?.props
6565

6666
for (const key in instance.props) {
6767
const propDefinition = propDefinitions ? propDefinitions[key] : null

0 commit comments

Comments
 (0)
Please sign in to comment.