Skip to content

Commit 4e446e8

Browse files
committed
fix: fix visibleScenarios prop types in BI report components
1 parent c03ce23 commit 4e446e8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/charts/PowerBIReport/PowerBIReport.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,7 @@ PowerBIReport.propTypes = {
267267
* - runId (optional): scenario run identifier
268268
* - csmSimulationRun (optional): identifier of the csmSimulationRun
269269
*/
270-
visibleScenarios: PropTypes.arrayOf(
271-
PropTypes.shape({
272-
id: PropTypes.string.isRequired,
273-
runId: PropTypes.string,
274-
csmSimulationRun: PropTypes.string,
275-
})
276-
),
270+
visibleScenarios: PropTypes.arrayOf(PropTypes.object),
277271
/**
278272
* Display ratio (width/height) of the PowerBI iframe, expressed as a number.
279273
*/

src/charts/SupersetReport/SupersetReport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,5 @@ SupersetReport.propTypes = {
154154
}).isRequired,
155155
scenario: PropTypes.object,
156156
style: PropTypes.object,
157-
visibleScenarios: PropTypes.array,
157+
visibleScenarios: PropTypes.arrayOf(PropTypes.object),
158158
};

0 commit comments

Comments
 (0)