Update query parameter in FieldsDSL and DSL
This commit is contained in:
parent
5202f4cca3
commit
25d83cb5cc
2 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ func (fields *FieldsDSL) Xgen(layout *LayoutDSL, query map[string]interface{}) (
|
|||
messages := []string{}
|
||||
replacements := maps.Map{}
|
||||
if query != nil {
|
||||
replacements = maps.Of(map[string]interface{}{"$parent": query}).Dot()
|
||||
replacements = maps.Of(map[string]interface{}{"$props": query}).Dot()
|
||||
}
|
||||
|
||||
if layout.List != nil && layout.List.Columns != nil {
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ func (dsl *DSL) Xgen(data map[string]interface{}, excludes map[string]bool, quer
|
|||
|
||||
replacements := maps.Map{}
|
||||
if query != nil {
|
||||
replacements = maps.Of(map[string]interface{}{"$parent": query}).Dot()
|
||||
replacements = maps.Of(map[string]interface{}{"$props": query}).Dot()
|
||||
}
|
||||
|
||||
for _, cProp := range dsl.CProps {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue