Skip to content

Commit

Permalink
fix: 🐛 fix workorder powerbi bug (#472)
Browse files Browse the repository at this point in the history
* fix: 🐛 fix workorder powerbi bug

* Prettified Code!

* chore: 🔖 release

* fix: 🐛 fix slicer state getting requested before ready

* chore: correct version

---------

Co-authored-by: Gustav-Eikaas <Gustav-Eikaas@users.noreply.github.com>
  • Loading branch information
Gustav-Eikaas and Gustav-Eikaas authored Sep 8, 2023
1 parent f367f27 commit 49e9b31
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/power-bi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-powerbi",
"version": "1.0.5",
"version": "1.0.6",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion packages/power-bi/src/lib/utils/getActiveFilterValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const getActiveFilterValues = async (filters: PowerBiFilter[]) => {
const activeFilterValues = {} as Record<string, (string | number | boolean)[]>;

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 || [];
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-fusion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-fusion",
"version": "5.0.6",
"version": "5.0.7",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down

0 comments on commit 49e9b31

Please sign in to comment.