Skip to content

Commit

Permalink
fix(kit): add null-safety check on process instance props, #659
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Nov 1, 2024
1 parent caf113d commit bf8ad74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools-kit/src/core/component/state/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function resolveMergedOptions(
*/
function processProps(instance: VueAppInstance) {
const props: InspectorState[] = []
const propDefinitions = instance.type.props
const propDefinitions = instance?.type?.props

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

0 comments on commit bf8ad74

Please sign in to comment.