mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
chore: remove extra validationError
as @clarkdo mentioned
This commit is contained in:
parent
608b913b8a
commit
87d303845f
@ -292,15 +292,14 @@ async function render (to, from, next) {
|
|||||||
|
|
||||||
// Call .validate()
|
// Call .validate()
|
||||||
let isValid = true
|
let isValid = true
|
||||||
let validationError
|
|
||||||
try {
|
try {
|
||||||
for (const Component of Components) {
|
for (const Component of Components) {
|
||||||
if (typeof Component.options.validate !== 'function') {
|
if (typeof Component.options.validate !== 'function') {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
isValid = await Component.options.validate(app.context)
|
isValid = await Component.options.validate(app.context)
|
||||||
|
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,6 @@ export default async (ssrContext) => {
|
|||||||
** Call .validate()
|
** Call .validate()
|
||||||
*/
|
*/
|
||||||
let isValid = true
|
let isValid = true
|
||||||
let validationError
|
|
||||||
try {
|
try {
|
||||||
for (const Component of Components) {
|
for (const Component of Components) {
|
||||||
if (typeof Component.options.validate !== 'function') {
|
if (typeof Component.options.validate !== 'function') {
|
||||||
|
Loading…
Reference in New Issue
Block a user