diff --git a/README.md b/README.md index 418af3be3..5dd2653db 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Fusion Workspace ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/equinor/fusion-workspace/ci.yml) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/equinor/fusion-workspace/publish.yml?logo=npm&label=Deployment) ![GitHub issues by-label](https://img.shields.io/github/issues/equinor/fusion-workspace/bug?label=%F0%9F%90%9B%20bug%20issues&color=red) - ![GitHub issues](https://img.shields.io/github/issues/equinor/fusion-workspace) ![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/equinor/fusion-workspace) +![GitHub issues](https://img.shields.io/github/issues/equinor/fusion-workspace) ![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/equinor/fusion-workspace) > Fusion Workspace is a library built with a controller-based structure in mind. Core functionality tab navigation, data handling, and allowing you to register controllers that react around page change / config change and data changes. diff --git a/packages/power-bi/package.json b/packages/power-bi/package.json index 44fca1686..ebeaece17 100644 --- a/packages/power-bi/package.json +++ b/packages/power-bi/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/workspace-powerbi", - "version": "1.0.5", + "version": "1.0.6", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/packages/power-bi/src/lib/utils/getActiveFilterValues.ts b/packages/power-bi/src/lib/utils/getActiveFilterValues.ts index 6607d0a1e..e41601922 100644 --- a/packages/power-bi/src/lib/utils/getActiveFilterValues.ts +++ b/packages/power-bi/src/lib/utils/getActiveFilterValues.ts @@ -8,7 +8,8 @@ export const getActiveFilterValues = async (filters: PowerBiFilter[]) => { const activeFilterValues = {} as Record; filters.forEach(async (filter) => { - const { filters: slicerFilters } = await filter.slicer.getSlicerState(); + const a = await filter.slicer.getSlicerState().catch((_) => {}); + const slicerFilters = a ? a.filters : []; activeFilterValues[filter.type] = []; slicerFilters.forEach((slicerFilter: SlicerFilter) => { activeFilterValues[filter.type] = slicerFilter?.values || []; diff --git a/packages/workspace-fusion/package.json b/packages/workspace-fusion/package.json index bbeb7827f..c4d2f39c6 100644 --- a/packages/workspace-fusion/package.json +++ b/packages/workspace-fusion/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/workspace-fusion", - "version": "5.0.6", + "version": "5.0.7", "type": "module", "sideEffects": false, "license": "MIT",