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

packages/app-backend-vue3/src/components/data.ts

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy