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/component/civic/CivicCard.spec.d.ts +1 -3
- package/dist/index.es.js +11 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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 || []
|
|
10307
|
+
? cbioportalUtils.fetchCivicGenes(this.mutationData.result || [])
|
|
10307
10308
|
: {}];
|
|
10308
10309
|
});
|
|
10309
10310
|
}); },
|