@abi-software/mapintegratedvuer 1.18.0 → 1.18.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/mapintegratedvuer",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -52,8 +52,8 @@
52
52
  "*.js"
53
53
  ],
54
54
  "dependencies": {
55
- "@abi-software/flatmapvuer": "1.13.2",
56
- "@abi-software/map-side-bar": "2.14.3",
55
+ "@abi-software/flatmapvuer": "1.13.3",
56
+ "@abi-software/map-side-bar": "2.14.4",
57
57
  "@abi-software/map-utilities": "1.8.2",
58
58
  "@abi-software/plotvuer": "1.0.7",
59
59
  "@abi-software/scaffoldvuer": "1.15.5",
@@ -110,10 +110,15 @@ const getAllFacetLabels = (children) => {
110
110
  return labels;
111
111
  }
112
112
 
113
+ const getFacetsFromAction = (action) => {
114
+ const actionFacets = action.facets ? action.facets : action.labels ? action.labels : [];
115
+ return actionFacets;
116
+ }
113
117
 
114
118
  const getAnatomyTermsForFilters = (action, availableNameCurieMapping) => {
115
119
  const facets = [];
116
- for (const facet of action.facets) {
120
+ const actionFacets = getFacetsFromAction(action);
121
+ for (const facet of actionFacets) {
117
122
  if (facet in availableNameCurieMapping) {
118
123
  facets.push(availableNameCurieMapping[facet]);
119
124
  } else {
@@ -327,7 +332,8 @@ export default {
327
332
  };
328
333
  const filters = [];
329
334
  const facets = getAnatomyTermsForFilters(action, this.availableNameCurieMapping);
330
- const facetString = action.facets.join(', ');
335
+ const actionFacets = getFacetsFromAction(action);
336
+ const facetString = actionFacets.join(', ');
331
337
  facets.forEach(facet => filters.push({...sendAction, facet}));
332
338
  this.$refs.sideBar.addFilter(filters);
333
339
  // GA Tagging