[fix] table bind model bug
This commit is contained in:
parent
12552d5b69
commit
b868ae3f5f
2 changed files with 7 additions and 2 deletions
|
|
@ -278,7 +278,7 @@ func loadApp(root string) error {
|
|||
|
||||
func printErr(mode, widget string, err error) {
|
||||
message := fmt.Sprintf("[%s] %s", widget, err.Error())
|
||||
if !strings.Contains(message, "does not exists") && mode == "development" {
|
||||
if !strings.Contains(message, "does not exists") && !strings.Contains(message, "no such file or directory") && mode == "development" {
|
||||
color.Red(message)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,7 +188,12 @@ func (dsl *DSL) parse(id string, root string) error {
|
|||
}
|
||||
|
||||
if dsl.Fields == nil {
|
||||
dsl.Fields = &FieldsDSL{}
|
||||
dsl.Fields = &FieldsDSL{
|
||||
Table: field.Columns{},
|
||||
Filter: field.Filters{},
|
||||
filterMap: map[string]field.FilterDSL{},
|
||||
tableMap: map[string]field.ColumnDSL{},
|
||||
}
|
||||
}
|
||||
|
||||
// Bind model / store / table / ...
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue