Skip to content

Commit

Permalink
Survive export_settings.fields being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm authored and noliveleger committed Nov 21, 2023
1 parent 8c3d71f commit fad6950
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default class ProjectExportsCreator extends React.Component {
// Select custom export toggle if not all rows are selected
// but only if at least one is selected
const customSelectionEnabled = (
data.export_settings.fields.length !== 0 &&
data.export_settings.fields?.length &&
this.state.selectableRowsCount !== data.export_settings.fields.length
);

Expand Down

0 comments on commit fad6950

Please sign in to comment.