Skip to content

Commit 5466a1a

Browse files
committed
fix(dataField): effect raw can be undefined
1 parent e03ea3c commit 5466a1a

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
@@ -137,7 +137,7 @@ function processSetupState (instance) {
137137

138138
result = {
139139
...objectType ? { objectType } : {},
140-
...raw.effect ? { raw: raw.effect.raw.toString() } : {},
140+
...raw.effect?.raw ? { raw: raw.effect.raw.toString() } : {},
141141
editable: isState && !info.readonly,
142142
type: isOther ? 'setup (other)' : 'setup'
143143
}

0 commit comments

Comments
 (0)