Skip to content

Commit

Permalink
docs: fix clearExternalResults example (vuelidate#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
wvffle authored Jul 8, 2021
1 parent 82c8b51 commit 831f513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/advanced_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ both `ref` and `reactive` objects.
```js
async function validate () {
// clear out old external results
v.$clearExternalResults()
v.value.$clearExternalResults()
// check if everything is valid
if (!await v.value.$validate()) return
//
Expand Down Expand Up @@ -575,7 +575,7 @@ To clear out the external results, you can again, use the `$clearExternalResults

```js
async function validate () {
this.$v.$clearExternalResults()
this.$v.value.$clearExternalResults()
// perform validations
const result = await this.runAsyncValidators()
}
Expand Down

0 comments on commit 831f513

Please sign in to comment.