react-mutation-mapper 0.8.102 → 0.8.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -99,15 +99,16 @@ var CivicCard = /** @class */ (function (_super) {
99
99
  else {
100
100
  for (var name_1 in variantMap) {
101
101
  var variant = variantMap[name_1];
102
- var entryTypes = '';
103
- for (var evidenceType in variant.evidenceCounts) {
104
- entryTypes +=
105
- evidenceType.toLowerCase() +
106
- ': ' +
107
- variant.evidenceCounts[evidenceType] +
108
- ', ';
109
- }
110
- entryTypes = entryTypes.slice(0, -2) + '.';
102
+ var entryTypes = Object.entries(variant.evidenceCounts)
103
+ .filter(function (_a) {
104
+ _a[0]; var value = _a[1];
105
+ return value !== 0;
106
+ })
107
+ .map(function (_a) {
108
+ var key = _a[0], value = _a[1];
109
+ return key.slice(0, -5) + ": " + value;
110
+ }) // Remove "Count" substring from key
111
+ .join(', ');
111
112
  list.push(this.variantItem(name_1, variant.url, variant.name, entryTypes, variant.description));
112
113
  }
113
114
  }
@@ -10303,7 +10304,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
10303
10304
  invoke: function () { return tslib.__awaiter(_this, void 0, void 0, function () {
10304
10305
  return tslib.__generator(this, function (_a) {
10305
10306
  return [2 /*return*/, this.config.enableCivic
10306
- ? cbioportalUtils.fetchCivicGenes(this.mutationData.result || [], this.getDefaultEntrezGeneId)
10307
+ ? cbioportalUtils.fetchCivicGenes(this.mutationData.result || [])
10307
10308
  : {}];
10308
10309
  });
10309
10310
  }); },