fixed - if the id is "" from the split then it returns undefined which will allow the following refactored code to render the charm details.