Skip to content

Commit 8da42f4

Browse files
Fix packages/examples/src/examples/rule.ts for review update
Co-authored-by: Stefan Dirix <[email protected]>
1 parent 0632025 commit 8da42f4

File tree

1 file changed

+2
-2
lines changed
  • packages/examples/src/examples

1 file changed

+2
-2
lines changed

packages/examples/src/examples/rule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ export const uischema = {
113113
effect: 'SHOW',
114114
condition: {
115115
scope: '#',
116-
validate: (data: any) => {
117-
return !data.dead && data.kindOfVegetables !== 'All';
116+
validate: (context: ValidateFunctionContext) => {
117+
return !context.data.dead && context.data.kindOfVegetables !== 'All';
118118
},
119119
},
120120
},

0 commit comments

Comments
 (0)