Skip to content

Commit

Permalink
Merge pull request #6 from NatVanG/nullvisualtypefix
Browse files Browse the repository at this point in the history
Fix null visualType throwing a null reference exception when renderin…
  • Loading branch information
NatVanG authored Sep 30, 2023
2 parents 8c1bb6c + 45cccfd commit 3ec8962
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions PBIXInspectorWinLibrary/Files/ReportPageFieldMap.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,21 @@
{
"map": [
{
"var": "v"
"filter": [
{
"var": "v"
},
{
"and": [
{ "!!": [ { "var": "name" } ] },
{ "!!": [ { "var": "singleVisual.visualType" } ] },
{ ">=": [ { "var": "layouts.0.position.x" }, 0 ] },
{ ">=": [ { "var": "layouts.0.position.y" }, 0 ] },
{ ">=": [ { "var": "layouts.0.position.width" }, 0 ] },
{ ">=": [ { "var": "layouts.0.position.height" }, 0 ] }
]
}
]
},
{
"torecord": [
Expand Down Expand Up @@ -69,4 +83,4 @@
]
}
]
}
}

0 comments on commit 3ec8962

Please sign in to comment.