mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-18 16:41:13 +00:00
Really set type
This commit is contained in:
parent
9e67a3ceb8
commit
e806137905
2
vendor/github.com/rancher/norman/pkg/types/mapper.go
generated
vendored
2
vendor/github.com/rancher/norman/pkg/types/mapper.go
generated
vendored
@ -91,7 +91,7 @@ func (t *typeMapper) FromInternal(data map[string]interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if t.root {
|
if t.root {
|
||||||
if _, ok := data["type"]; ok {
|
if _, ok := data["type"]; !ok {
|
||||||
data["type"] = t.typeName
|
data["type"] = t.typeName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user