Skip to content

Commit

Permalink
fix: render returns html
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowgate15 committed Nov 22, 2021
1 parent 8edfec5 commit c37582b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ function viewsMiddleware(

if (autoRender) {
ctx.body = html
} else {
return Promise.resolve(html)
return html
}

return Promise.resolve(html)
})
}
})
Expand Down

0 comments on commit c37582b

Please sign in to comment.