@sjcrh/proteinpaint-shared 2.167.0 → 2.169.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/common.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-shared",
3
- "version": "2.167.0",
3
+ "version": "2.169.0",
4
4
  "description": "ProteinPaint code that is shared between server and client-side workspaces",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/common.js CHANGED
@@ -1324,7 +1324,7 @@ const dtTerms_temp = [
1324
1324
  type: 'dtsnvindel',
1325
1325
  dt: dtsnvindel,
1326
1326
  values: Object.fromEntries(
1327
- mutationClasses.filter(key => key != 'Blank').map(key => [key, { label: mclass[key].label }])
1327
+ mutationClasses.filter(key => key != 'Blank' && key != 'WT').map(key => [key, { label: mclass[key].label }])
1328
1328
  )
1329
1329
  },
1330
1330
  {
@@ -1335,7 +1335,7 @@ const dtTerms_temp = [
1335
1335
  isleaf: true,
1336
1336
  type: 'dtcnv',
1337
1337
  dt: dtcnv,
1338
- values: Object.fromEntries([...CNVClasses, 'WT'].map(key => [key, { label: mclass[key].label }]))
1338
+ values: Object.fromEntries(CNVClasses.map(key => [key, { label: mclass[key].label }]))
1339
1339
  },
1340
1340
  {
1341
1341
  id: 'fusion',
@@ -1345,7 +1345,7 @@ const dtTerms_temp = [
1345
1345
  isleaf: true,
1346
1346
  type: 'dtfusion',
1347
1347
  dt: dtfusionrna,
1348
- values: Object.fromEntries([mclassfusionrna, 'WT'].map(key => [key, { label: mclass[key].label }]))
1348
+ values: { [mclassfusionrna]: { label: mclass[mclassfusionrna].label } }
1349
1349
  },
1350
1350
  {
1351
1351
  id: 'sv',
@@ -1355,7 +1355,7 @@ const dtTerms_temp = [
1355
1355
  isleaf: true,
1356
1356
  type: 'dtsv',
1357
1357
  dt: dtsv,
1358
- values: Object.fromEntries([mclasssv, 'WT'].map(key => [key, { label: mclass[key].label }]))
1358
+ values: { [mclasssv]: { label: mclass[mclasssv].label } }
1359
1359
  }
1360
1360
  ]
1361
1361
  // add origin annotations to dt terms