Skip to content

Commit d983fcc

Browse files
committed
fix(vue3): cannot access 'setup' prop of null
1 parent 9ad80cc commit d983fcc

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: packages/app-backend-vue3/src/components/data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function processSetupState(instance) {
195195
let isOther = typeof value === 'function'
196196
|| typeof value?.render === 'function'
197197
|| typeof value?.__asyncLoader === 'function'
198-
|| (typeof value === 'object' && ('setup' in value || 'props' in value))
198+
|| (typeof value === 'object' && value && ('setup' in value || 'props' in value))
199199

200200
if (rawData) {
201201
const info = getSetupStateInfo(rawData)

0 commit comments

Comments
 (0)