controllers/location.go
@@ -103,7 +103,10 @@ tree = append(tree, location) continue } m[location.ParentId].Children = make([]*models.Location, 0) if m[location.ParentId].Children == nil { m[location.ParentId].Children = make([]*models.Location, 0) } m[location.ParentId].Children = append(m[location.ParentId].Children, location) } }