Skip to content

Commit 2d0f4c5

Browse files
committed
fix: fix possible error in SimplePowerBIReportEmbed
When the prop visibleScenarios is not provided, the component could raise an error because it tries to access .length of the visibleScenarios array when building the ScenarioDTO for dynamic filters (cherry picked from commit e155693)
1 parent 494ae31 commit 2d0f4c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/charts/SimplePowerBIReportEmbed/SimplePowerBIReportEmbed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ SimplePowerBIReportEmbed.defaultProps = {
402402
refreshable: true,
403403
refreshTimeout: 15000,
404404
useAAD: false,
405+
visibleScenarios: [],
405406
labels: {
406407
noScenario: {
407408
title: 'No scenario yet',

0 commit comments

Comments
 (0)