Pass object not string to mapper, fixes redhat-ipaas/datamapper-ui#24
@@ -118,7 +118,7 @@ export class DataMapperHostComponent extends FlowPage implements OnInit, OnDestr
const mappingDefinition = new MappingDefinition();
// Existing mappings, load from the route
try {
- this.mappingService.deserializeMappingServiceJSON(mappings, mappingDefinition);
+ this.mappingService.deserializeMappingServiceJSON(JSON.parse(mappings), mappingDefinition);
} catch (err) {
// TODO popup or error alert? At least catch this so we initialize
log.warn('Failed to deserialize mappings: ' + err, category);
