Skip to content

Commit 0932a11

Browse files
authored
docs: fix deps (#4096)
1 parent 0eeeb0c commit 0932a11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/guide/advanced/calculator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default () => {
139139
x-pattern="readPretty"
140140
x-reactions={{
141141
dependencies: ['.projects'],
142-
when: '{{$deps.length > 0}}',
142+
when: '{{$deps[0].length > 0}}',
143143
fulfill: {
144144
state: {
145145
value:
@@ -338,7 +338,7 @@ const schema = {
338338
'x-pattern': 'readPretty',
339339
'x-reactions': {
340340
dependencies: ['.projects'],
341-
when: '{{$deps.length > 0}}',
341+
when: '{{$deps[0].length > 0}}',
342342
fulfill: {
343343
state: {
344344
value:

docs/guide/advanced/calculator.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default () => {
139139
x-pattern="readPretty"
140140
x-reactions={{
141141
dependencies: ['.projects'],
142-
when: '{{$deps.length > 0}}',
142+
when: '{{$deps[0].length > 0}}',
143143
fulfill: {
144144
state: {
145145
value:
@@ -338,7 +338,7 @@ const schema = {
338338
'x-pattern': 'readPretty',
339339
'x-reactions': {
340340
dependencies: ['.projects'],
341-
when: '{{$deps.length > 0}}',
341+
when: '{{$deps[0].length > 0}}',
342342
fulfill: {
343343
state: {
344344
value:

0 commit comments

Comments
 (0)