Hide/show transcript button in the player - Do not request transscript when property is null in the document request
import { JSONAPISerializer } from 'ember-cli-mirage';
import _ from 'lodash/lodash';
export default JSONAPISerializer.extend({
serialize(response) {
return _(response.models).map((discourse) => { return [discourse.id, {count: discourse.count, label: discourse.label}];}).object().value();
}
});