Skip to content

Commit

Permalink
Fix: Fix opening report format dialog (#3950)
Browse files Browse the repository at this point in the history
Opening the report format dialog wasn't possible because a required prop
was not passed. This wasn't spotted because currently there is no non
predefined report format thus no report format is editable.
  • Loading branch information
bjoernricks committed Jan 17, 2024
1 parent 6e80422 commit d582a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/pages/reportformats/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class ReportFormatComponent extends React.Component {
render() {
const {children, onDeleted, onDeleteError, onInteraction} = this.props;

const {dialogVisible, reportformat, title} = this.state;
const {dialogVisible, reportformat, title, preferences} = this.state;

return (
<EntityComponent
Expand All @@ -147,6 +147,7 @@ class ReportFormatComponent extends React.Component {
{dialogVisible && (
<ReportFormatDialog
reportformat={reportformat}
preferences={preferences}
title={title}
onClose={this.handleCloseReportFormatDialog}
onSave={this.handleSave}
Expand Down

0 comments on commit d582a07

Please sign in to comment.