mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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()
|
||||
let isValid = true
|
||||
let validationError
|
||||
try {
|
||||
for (const Component of Components) {
|
||||
if (typeof Component.options.validate !== 'function') {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
isValid = await Component.options.validate(app.context)
|
||||
|
||||
|
||||
if (!isValid) {
|
||||
break
|
||||
}
|
||||
|
@ -154,7 +154,6 @@ export default async (ssrContext) => {
|
||||
** Call .validate()
|
||||
*/
|
||||
let isValid = true
|
||||
let validationError
|
||||
try {
|
||||
for (const Component of Components) {
|
||||
if (typeof Component.options.validate !== 'function') {
|
||||
|
Loading…
Reference in New Issue
Block a user