mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
revert last commit
This commit is contained in:
parent
6ee69ffd1c
commit
65e60df44e
|
@ -2792,7 +2792,7 @@ func (ctx *Context) View(filename string, optionalViewModel ...interface{}) erro
|
|||
layout := ctx.values.GetString(cfg.GetViewLayoutContextKey())
|
||||
|
||||
var bindingData interface{}
|
||||
if len(optionalViewModel) > 0 && optionalViewModel[0] != nil {
|
||||
if len(optionalViewModel) > 0 /* Don't do it: can break a lot of servers: && optionalViewModel[0] != nil */ {
|
||||
// a nil can override the existing data or model sent by `ViewData`.
|
||||
bindingData = optionalViewModel[0]
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user