Skip to content

Commit

Permalink
fix(vue3): cannot access 'setup' prop of null
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 7, 2024
1 parent 9ad80cc commit d983fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-backend-vue3/src/components/data.ts
Expand Up @@ -195,7 +195,7 @@ function processSetupState(instance) {
let isOther = typeof value === 'function'
|| typeof value?.render === 'function'
|| typeof value?.__asyncLoader === 'function'
|| (typeof value === 'object' && ('setup' in value || 'props' in value))
|| (typeof value === 'object' && value && ('setup' in value || 'props' in value))

if (rawData) {
const info = getSetupStateInfo(rawData)
Expand Down

0 comments on commit d983fcc

Please sign in to comment.