Skip to content

Commit

Permalink
fix(runtime-dom): resolve inner component definition should check pro…
Browse files Browse the repository at this point in the history
…ps is not undefined (fix vuejs#6895)
  • Loading branch information
AngryChocobo committed Oct 17, 2022
1 parent 9617dd4 commit f4a043c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/apiCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class VueElement extends BaseClass {

const resolve = (def: InnerComponentDef) => {
const { props, styles } = def
const hasOptions = !isArray(props)
const hasOptions = props && !isArray(props)
const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : []

// cast Number-type props set before resolve
Expand Down

0 comments on commit f4a043c

Please sign in to comment.