Really set type

This commit is contained in:
Darren Shepherd 2019-08-09 16:36:38 -07:00
parent 9e67a3ceb8
commit e806137905

View File

@ -91,7 +91,7 @@ func (t *typeMapper) FromInternal(data map[string]interface{}) {
}
if t.root {
if _, ok := data["type"]; ok {
if _, ok := data["type"]; !ok {
data["type"] = t.typeName
}
}